# Adding a new node

**URL:** <https://discuss.elastic.co/t/adding-a-new-node/60881>\
**Category:** Elasticsearch\
**Created:** [September 19, 2016, 12:33pm UTC](https://discuss.elastic.co/t/adding-a-new-node/60881 "2016-09-19T12:33:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sruthi](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sruthi](https://discuss.elastic.co/u/sruthi)\
**Post date:** [September 19, 2016, 12:33pm UTC](https://discuss.elastic.co/t/adding-a-new-node/60881/1 "2016-09-19T12:33:48Z")

</div>

I am trying to add a new node to the existing cluster of elasticsearch (v 2.3.4). I have public ip as well as private ip for the new virtual machine I have created.  
In yml file, below changes are done  
[cluster.name](http://cluster.name): myclustername  
discovery.zen.ping.unicast.hosts: I have tried both ip's along with port 9200 and 9300.  
The new node is not getting added to the cluster. Is there any other setting I need to do?

---

<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:** [September 19, 2016, 12:45pm UTC](https://discuss.elastic.co/t/adding-a-new-node/60881/2 "2016-09-19T12:45:36Z")

</div>

You need to set `network.host` on both nodes. Otherwise they can't communicate as they are only listening on 127.0.0.1 by default.

---

<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:19pm UTC](https://discuss.elastic.co/t/adding-a-new-node/60881/3 "2017-07-05T22:19:12Z")

</div>


