# Which network.host IP will be used to communicate?

**URL:** <https://discuss.elastic.co/t/which-network-host-ip-will-be-used-to-communicate/184588>\
**Category:** Elasticsearch\
**Created:** [June 6, 2019, 1:21pm UTC](https://discuss.elastic.co/t/which-network-host-ip-will-be-used-to-communicate/184588 "2019-06-06T13:21:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [June 6, 2019, 1:21pm UTC](https://discuss.elastic.co/t/which-network-host-ip-will-be-used-to-communicate/184588/1 "2019-06-06T13:21:43Z")

</div>

Hi all,

We have a cluster with some nodes having 2 network.host declared:

```
  network.host: ["1.2.3.4", 10.11.12.13"]

```

Our question is quite simple: which one will be used by nodes and masters to communicate between themself ? 👍 🙄

bye,  
Xavier

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [June 7, 2019, 4:00am UTC](https://discuss.elastic.co/t/which-network-host-ip-will-be-used-to-communicate/184588/2 "2019-06-07T04:00:20Z")

</div>

It's messy. We do our best to resolve them all and prioritise them (site local before loopback before multicast etc) and then publish the highest priority.

If you care, then you should probably set `network.publish_host`.

---

<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, 2019, 4:00am UTC](https://discuss.elastic.co/t/which-network-host-ip-will-be-used-to-communicate/184588/3 "2019-07-05T04:00:24Z")

</div>

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