# Elasticsearch failed to connect to master although the http request is available

**URL:** <https://discuss.elastic.co/t/elasticsearch-failed-to-connect-to-master-although-the-http-request-is-available/75575>\
**Category:** Elasticsearch\
**Created:** [February 18, 2017, 6:45am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-connect-to-master-although-the-http-request-is-available/75575 "2017-02-18T06:45:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![czqInNanjing](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@czqInNanjing](https://discuss.elastic.co/u/czqInNanjing)\
**Post date:** [February 18, 2017, 6:45am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-connect-to-master-although-the-http-request-is-available/75575/1 "2017-02-18T06:45:31Z")

</div>

I use three servers to testify the Elasticsearch's Cluster function.  
This is one of my servers' key configs:

- Server1:(public address: 115.159.157.\*\*\*)

The server's public ip address is 115.159.157.\*\*\*. But when start elasticsearch, its log shows that it bounds to an private address

```
[2017-02-18T10:36:14,491][INFO][o.e.t.TransportService] 
[qiang_server] publish_address {10.105.197.255:9300}, bound_addresses {10.105.197.255:9300}

```

Then when I try to use another server to connect to this server, it shows:

```
[2017-02-18T11:31:05,664][WARN][o.e.d.z.ZenDiscovery]
[dbc_server] failed to connect to master 
[{qiang_server}{GYT635GNSaqOpBdQK4ZcGg}{O1sDFagITmWFnXRBf-uweA}{10.105.197.255}{10.105.197.255:9300}], retrying... 
org.elasticsearch.transport.ConnectTransportException: [qiang_server][10.105.197.255:9300] connect_timeout[30s]

```

This server's key config are following:

- Server2:(public address: 182.254.212.\*\*\*)

And if I try to send a HTTP request to Server1, it can respond.

Now my question is: why the server2 can reach server1 and get it's private address:10.105.197.255 and its node name: qiang\_server, but still not able to connect to the server1?

I understand that 10.105.197.255 is a private address but server2 has found server1, why they still cannot join together?

The following are some of my attempts, which all failed:  
Clearly 10.105.197.255 is a private address,  
I have tried some other configs for network.host like

1. _site_:still the same address

2. 115.159.157.\*\*\*: this is my server's public address, while exception implying that can not bind to the request address

3. _global_: turning out with exception "No up-and-running global-scope (public) addresses found"

Any suggestions will help, thanks!

---

<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:** [February 18, 2017, 7:06am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-connect-to-master-although-the-http-request-is-available/75575/2 "2017-02-18T07:06:24Z")

</div>

Why are your servers internet accessible? Do you not care about the data that is in ES?

---

<div class="post-metadata">

**Author:** ![czqInNanjing](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@czqInNanjing](https://discuss.elastic.co/u/czqInNanjing)\
**Post date:** [February 18, 2017, 7:18am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-connect-to-master-although-the-http-request-is-available/75575/3 "2017-02-18T07:18:41Z")

</div>

it is just a test server, the data inside is useless, so I am not afraid of being attacked or stolen

---

<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:** [March 18, 2017, 7:18am UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-connect-to-master-although-the-http-request-is-available/75575/4 "2017-03-18T07:18:41Z")

</div>

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