# Can't connect to es using IP address

**URL:** https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184
**Category:** Elasticsearch
**Created:** [November 9, 2015, 6:26pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184 "2015-11-09T18:26:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![eprst](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eprst](https://discuss.elastic.co/u/eprst)
#### Post date: [November 9, 2015, 6:26pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184/1 "2015-11-09T18:26:17Z")

</div>

i installed elastic search as deb package and run the service. When i try to connect via localhost it works. but it don't works with local or global ip.

---

<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: [November 9, 2015, 6:52pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184/2 "2015-11-09T18:52:45Z")

</div>

Which version of Elasticsearch, 2.0? By default it only binds to localhost. See the release notes.

---

<div class="post-metadata">

### Author: ![eprst](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eprst](https://discuss.elastic.co/u/eprst)
#### Post date: [November 9, 2015, 7:12pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184/3 "2015-11-09T19:12:25Z")

</div>

thx but how to fix this?

---

<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: [November 9, 2015, 7:14pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184/4 "2015-11-09T19:14:44Z")

</div>

The release notes should contain links to the documentation, which explains how to change the default. This has also come up before in the past couple of weeks so a search of the archives could prove useful.

---

<div class="post-metadata">

### Author: ![eprst](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eprst](https://discuss.elastic.co/u/eprst)
#### Post date: [November 9, 2015, 8:20pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184/5 "2015-11-09T20:20:46Z")

</div>

Thx. i set network.host: "0.0.0.0" and now it works

---

<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:39pm UTC](https://discuss.elastic.co/t/cant-connect-to-es-using-ip-address/34184/6 "2017-07-05T23:39:41Z")

</div>


