# Unable To Connect To theRemote Cluster

**URL:** <https://discuss.elastic.co/t/unable-to-connect-to-theremote-cluster/271210>\
**Category:** Elasticsearch\
**Tags:** ccr-cross-cluster-replication\
**Created:** [April 26, 2021, 2:31am UTC](https://discuss.elastic.co/t/unable-to-connect-to-theremote-cluster/271210 "2021-04-26T02:31:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahooljy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yahooljy/32/87704_2.png) [@yahooljy](https://discuss.elastic.co/u/yahooljy)\
**Post date:** [April 26, 2021, 2:31am UTC](https://discuss.elastic.co/t/unable-to-connect-to-theremote-cluster/271210/1 "2021-04-26T02:31:16Z")

</div>

Hi there ! I Set up basic security for the Elastic Stack plus secured HTTPS traffic . and then my kibana can connect to the local cluster successfully . But there is something wrong with the connection between the localcluster and the remote cluster.

```auto
{
  "remoting_cluster" : {
    "connected" : false,
    "mode" : "sniff",
    "seeds" : [
      "10.112.51.39:9200"
    ],
    "num_nodes_connected" : 0,
    "max_connections_per_cluster" : 3,
    "initial_connect_timeout" : "30s",
    "skip_unavailable" : false
  }
}

```

Here is the log of local cluster node:

```auto
[2021-04-26T10:21:48,267][WARN][o.e.t.SniffConnectionStrategy] [node-1] fetching nodes from external cluster [remoting_cluster] failed
org.elasticsearch.transport.ConnectTransportException: [][10.112.51.39:9200] handshake_timeout[30s]
	at org.elasticsearch.transport.TransportHandshaker.lambda$sendHandshake$1(TransportHandshaker.java:62) ~[elasticsearch-7.12.0.jar:7.12.0]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:673) ~[elasticsearch-7.12.0.jar:7.12.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
	at java.lang.Thread.run(Thread.java:832) [?:?]
[2021-04-26T10:22:48,261][WARN][o.e.t.SniffConnectionStrategy] [node-1] fetching nodes from external cluster [remoting_cluster] failed
org.elasticsearch.transport.ConnectTransportException: [][10.112.51.39:9200] handshake_timeout[30s]
	at org.elasticsearch.transport.TransportHandshaker.lambda$sendHandshake$1(TransportHandshaker.java:62) ~[elasticsearch-7.12.0.jar:7.12.0]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:673) ~[elasticsearch-7.12.0.jar:7.12.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
	at java.lang.Thread.run(Thread.java:832) [?:?]
[2021-04-26T10:23:48,307][WARN][o.e.t.SniffConnectionStrategy] [node-1] fetching nodes from external cluster [remoting_cluster] failed
org.elasticsearch.transport.ConnectTransportException: [][10.112.51.39:9200] handshake_timeout[30s]
	at org.elasticsearch.transport.TransportHandshaker.lambda$sendHandshake$1(TransportHandshaker.java:62) ~[elasticsearch-7.12.0.jar:7.12.0]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:673) ~[elasticsearch-7.12.0.jar:7.12.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
	at java.lang.Thread.run(Thread.java:832) [?:?]

```

How to figure out this problem?

---

<div class="post-metadata">

**Author:** ![yahooljy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yahooljy/32/87704_2.png) [@yahooljy](https://discuss.elastic.co/u/yahooljy)\
**Post date:** [April 26, 2021, 8:30am UTC](https://discuss.elastic.co/t/unable-to-connect-to-theremote-cluster/271210/2 "2021-04-26T08:30:44Z")

</div>

Hi , I have already solved this problem. The local cluster communicate with the remote cluster on the port 9300 , I set it to 9200 😅.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2021, 12:41am UTC](https://discuss.elastic.co/t/unable-to-connect-to-theremote-cluster/271210/3 "2021-04-27T00:41:00Z")

</div>

Thanks for sharing your solution!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 25, 2021, 12:41am UTC](https://discuss.elastic.co/t/unable-to-connect-to-theremote-cluster/271210/4 "2021-05-25T00:41:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
