# Publish and bind machine ip for elasticsearch nodes

**URL:** <https://discuss.elastic.co/t/publish-and-bind-machine-ip-for-elasticsearch-nodes/136373>\
**Category:** Elasticsearch\
**Created:** [June 18, 2018, 9:08pm UTC](https://discuss.elastic.co/t/publish-and-bind-machine-ip-for-elasticsearch-nodes/136373 "2018-06-18T21:08:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavw](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pavw](https://discuss.elastic.co/u/pavw)\
**Post date:** [June 18, 2018, 9:08pm UTC](https://discuss.elastic.co/t/publish-and-bind-machine-ip-for-elasticsearch-nodes/136373/1 "2018-06-18T21:08:36Z")

</div>

Currently my es nodes publish on a private ip (172.xx.xx.xx) and I would like them to publish on the ip of the machine where they are created. I know that I can manually set the publish\_host option to the specific machine ip (ex. `network.publish_host: 10.0.4.123`). But in my case when the service is created, it is randomly assigned to one of the free nodes, so I don't know which ip to publish beforehand. What changes do I need to make to the network env vars (network.host, network.bind\_host, network.publish\_host) so that each node does something like:

```auto
publish_address {10.0.4.123:9200}, bound_addresses {[::]:9200}

```

Thanks!

---

<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 16, 2018, 9:08pm UTC](https://discuss.elastic.co/t/publish-and-bind-machine-ip-for-elasticsearch-nodes/136373/2 "2018-07-16T21:08:37Z")

</div>

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