# Can't set listen all network interfaces

**URL:** https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987
**Category:** Elasticsearch
**Created:** [December 14, 2016, 8:36am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987 "2016-12-14T08:36:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![111126](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111126/32/36818_2.png) [@111126](https://discuss.elastic.co/u/111126)
#### Post date: [December 14, 2016, 8:36am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987/1 "2016-12-14T08:36:39Z")

</div>

Hello. Default setting elastic listen 127.0.0.1:9200. I need that elastic listen all network interfaces - 0 0.0.0.0:9200  
If I set network.host: "0.0.0.0" in /etc/elasticsearch/elaticsearch.yml, I have the next error:

> Exception  
> java.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/2tb/elasticsearch/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max\_local\_storage\_nodes] (was [1])?

How I can set listen 0 0.0.0.0:9200 ?  
My elastic version 5.1.1 and I have 1 node

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 14, 2016, 8:48am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987/2 "2016-12-14T08:48:09Z")

</div>

You have already a node running probably.  
Check with `ps -ef` and kill the running node then restart.

---

<div class="post-metadata">

### Author: ![111126](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111126/32/36818_2.png) [@111126](https://discuss.elastic.co/u/111126)
#### Post date: [December 14, 2016, 9:03am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987/3 "2016-12-14T09:03:47Z")

</div>

Ok. You right! But I have the next:

> node validation exception  
> bootstrap checks failed  
> initial heap size [34359738368] not equal to maximum heap size [68719476736]; this can cause resize pauses and prevents mlockall from locking the entire heap

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 14, 2016, 9:30am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987/4 "2016-12-14T09:30:10Z")

</div>

Read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<div class="post-metadata">

### Author: ![111126](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111126/32/36818_2.png) [@111126](https://discuss.elastic.co/u/111126)
#### Post date: [December 14, 2016, 10:58am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987/5 "2016-12-14T10:58:32Z")

</div>

Many Thanks. It helped me

---

<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: [January 11, 2017, 10:58am UTC](https://discuss.elastic.co/t/cant-set-listen-all-network-interfaces/68987/6 "2017-01-11T10:58:40Z")

</div>

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