# Unable to bind elasticsearch server from distant machine

**URL:** <https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266>\
**Category:** Elasticsearch\
**Created:** [October 15, 2015, 12:25pm UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266 "2015-10-15T12:25:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kruelah](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@kruelah](https://discuss.elastic.co/u/kruelah)\
**Post date:** [October 15, 2015, 12:25pm UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266/1 "2015-10-15T12:25:56Z")

</div>

Hi folks,

My problem must have been discussed on million times but I am unable to bind my Elasticsearch server from another computer on the same network.  
Server IP adress is 10.80.93.112, and I try to access using [http://10.80.93.112:9200](http://10.80.93.112:9200) from my web browser installed on my laptop.  
However when I run curl [http://localhost:9200](http://localhost:9200) or curl [http://127.0.0.1:9200](http://127.0.0.1:9200) from local system it seems to work normally.

Any idea?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 15, 2015, 12:44pm UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266/2 "2015-10-15T12:44:36Z")

</div>

Is ES listening on all interfaces? It should do that by default (so you should be fine) but it can be disabled in elasticsearch.yml. Is there a firewall that's blocking the access?

---

<div class="post-metadata">

**Author:** ![kruelah](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@kruelah](https://discuss.elastic.co/u/kruelah)\
**Post date:** [October 15, 2015, 1:31pm UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266/3 "2015-10-15T13:31:01Z")

</div>

My elastcsearch config file has not been modified.  
No firewell blocks any access between my server and my distant laptop.

Content of /var/logs/elasticsearch/elasticsearch.log:

```
[2015-10-15 15:23:46,120][INFO][node] [Starhawk] version[2.0.0-rc1], pid[2743], build[4757962/2015-10-01T10:06:08Z]
[2015-10-15 15:23:46,121][INFO][node] [Starhawk] initializing ...
[2015-10-15 15:23:46,257][INFO][plugins] [Starhawk] loaded [], sites []
[2015-10-15 15:23:46,394][INFO][env] [Starhawk] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [11gb], net total_space [14.7gb], spins? [unknown], types [rootfs]
[2015-10-15 15:23:48,460][INFO][node] [Starhawk] initialized
[2015-10-15 15:23:48,460][INFO][node] [Starhawk] starting ...
[2015-10-15 15:23:48,664][INFO][transport] [Starhawk] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2015-10-15 15:23:48,673][INFO][discovery] [Starhawk] elasticsearch/iR4wFarCRTerXyJBB9HO0A
[2015-10-15 15:23:51,724][INFO][cluster.service] [Starhawk] new_master {Starhawk}{iR4wFarCRTerXyJBB9HO0A}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2015-10-15 15:23:51,773][INFO][http] [Starhawk] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200}
[2015-10-15 15:23:51,774][INFO][node] [Starhawk] started
[2015-10-15 15:23:51,831][INFO][gateway] [Starhawk] recovered [1] indices into cluster_state

```

I don't understand why publish\_address and bound\_addresses params are set with 127.0.0.1, and not 10.80.93.112 as said in documentation.  
To be completly transparent I'm trying to upgrade my server from elasticsearch 1.7 to elasticsearch 2 RC, and my old system was running well until this morning.  
To do this I uninstalled 1.7 version using aptitude --purge elasticsearch, removed the /var/opt/elasticsearch directory that stayed here, and reinstall version 2 from freshly downdloaded .deb package (dpkg --install elasticsearch). I edited /etc/default/elasticsearch script and change memory value (2g to 4g).  
To complete the environment description a proxy has been installed at first time of installation, with the goal to access to Kibana on port 5301.  
Note that this operation has been done successfully on a testing environment but in a virtual machine (so I did't test access from distant machine on this environment).

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 15, 2015, 1:36pm UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266/4 "2015-10-15T13:36:12Z")

</div>

ES 2.0 by default binds to localhost only. See [https://www.elastic.co/guide/en/elasticsearch/reference/2.0/modules-network.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/modules-network.html).

---

<div class="post-metadata">

**Author:** ![kruelah](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@kruelah](https://discuss.elastic.co/u/kruelah)\
**Post date:** [October 19, 2015, 11:22am UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266/5 "2015-10-19T11:22:59Z")

</div>

Thank you for the link.  
I tried to modify elasticsearch.yml and add both ip address (10.80.93.112) and loopback address (127.0.0.1) but without success. Maybe the syntax I used is wrong, this point is not very well documented. Any idea about the right synthax?

---

<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:** [July 5, 2017, 11:44pm UTC](https://discuss.elastic.co/t/unable-to-bind-elasticsearch-server-from-distant-machine/32266/6 "2017-07-05T23:44:05Z")

</div>


