# Elasticsearch configure 2 network host

**URL:** <https://discuss.elastic.co/t/elasticsearch-configure-2-network-host/348024>\
**Category:** Elasticsearch\
**Created:** [November 27, 2023, 8:28am UTC](https://discuss.elastic.co/t/elasticsearch-configure-2-network-host/348024 "2023-11-27T08:28:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [November 27, 2023, 8:28am UTC](https://discuss.elastic.co/t/elasticsearch-configure-2-network-host/348024/1 "2023-11-27T08:28:32Z")

</div>

Hi,

Is it possible to configure elasticsearch to be accessible for both localhost and and ip address?

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 27, 2023, 9:31am UTC](https://discuss.elastic.co/t/elasticsearch-configure-2-network-host/348024/2 "2023-11-27T09:31:09Z")

</div>

Yes, you can use:

1. `network.host: 0.0.0.0` - ES will respond on every interface
2. `network.host: [_site_ , _local_]` - You can also use IPs. Read more [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html#network-interface-values).

---

<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:** [December 25, 2023, 9:31am UTC](https://discuss.elastic.co/t/elasticsearch-configure-2-network-host/348024/3 "2023-12-25T09:31:22Z")

</div>

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