# Cluster configuration about network hosts ips

**URL:** <https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513>\
**Category:** Elasticsearch\
**Created:** [July 14, 2016, 12:10pm UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513 "2016-07-14T12:10:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamaljit\_Pati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamaljit_pati/32/13731_2.png) [@Kamaljit\_Pati](https://discuss.elastic.co/u/Kamaljit_Pati)\
**Post date:** [July 14, 2016, 12:10pm UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513/1 "2016-07-14T12:10:32Z")

</div>

To create cluster i put the local loopback address and the ip that need to be connected by the other nodes in network.host place.

Till now what i have done is in yml file :  
network.host: ["127.0.0.1","10.253.130.181"] apart from this  
network.publish\_host: ["10.253.130.181"]  
network.bind\_host: ["10.253.130.181","127.0.0.1"] setting also works.

But in this setting elasticsearch binds both the ip address with both the ports 9200 and 9300 and listens to these ports. Now what i want is it should only listens to localhost(127.0.0.1) in 9200 port and binds the other ip with 9300 port and listens to it and publishes it. It shouldn't bind localhost with 9300 port also. I dont see any requirement for that and it shouldn't bind 10.253.130.181 with the 9200 port. It should be up to me how i want which ip to bind with which port. Why by default with both the ports it is binding.

---

<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:** [July 15, 2016, 4:03am UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513/2 "2016-07-15T04:03:45Z")

</div>

Port 9200 is for HTTP requests to/from clients, port 9300 is transport protocol which the nodes use for communications in the cluster.

You cannot run on a single port.

---

<div class="post-metadata">

**Author:** ![Kamaljit\_Pati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamaljit_pati/32/13731_2.png) [@Kamaljit\_Pati](https://discuss.elastic.co/u/Kamaljit_Pati)\
**Post date:** [August 2, 2016, 1:49pm UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513/3 "2016-08-02T13:49:18Z")

</div>

Thank you warkolm. But what my question was that i want only http request to only localhost and the other internal ips i want to use only for transport inside the cluster. So i want to bind localhost in 9200 and in other internal ip elasticsearch should bind in 9300 port only. Can i do that. Right now what is happening that......elasticsearch is binding both the ips with 9200 and 9300 port also.

---

<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:** [August 2, 2016, 9:11pm UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513/4 "2016-08-02T21:11:03Z")

</div>

Ahh ok, I misunderstood.

You should be able to do that with [https://www.elastic.co/guide/en/elasticsearch/reference/2.3/modules-network.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/modules-network.html). What version are you on\>

---

<div class="post-metadata">

**Author:** ![Kamaljit\_Pati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamaljit_pati/32/13731_2.png) [@Kamaljit\_Pati](https://discuss.elastic.co/u/Kamaljit_Pati)\
**Post date:** [August 4, 2016, 10:50am UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513/5 "2016-08-04T10:50:54Z")

</div>

i am using elasticsearch-2.3.3. In that link whatever written i already did that. in bind host place i gave loopback address and another ip and publish host i gave only that ip address. But it was binding both the addresses with both the port numbers. So i don't know what can be done. If you find anything, please reply me back.

---

<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, 10:30pm UTC](https://discuss.elastic.co/t/cluster-configuration-about-network-hosts-ips/55513/6 "2017-07-05T22:30:08Z")

</div>


