# How to set network.host to listen to IPv6 as well?

**URL:** https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923
**Category:** Elasticsearch
**Created:** [December 3, 2021, 6:25pm UTC](https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923 "2021-12-03T18:25:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![houmie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/houmie/32/78999_2.png) [@houmie](https://discuss.elastic.co/u/houmie)
#### Post date: [December 3, 2021, 6:25pm UTC](https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923/1 "2021-12-03T18:25:53Z")

</div>

Hello,

After struggling for hours why Filebeat can't connect to ES, I realised that this setting in elasticsearch.yaml is the culprit. It is only listening to IPv4 and not IPv6.

> network.host: 0.0.0.0

I tried many different ways to add ::/0 to it, but I can't restart ES successfully.  
What is the right format to listen to 0.0.0.0 and ::/0 please?

Thanks,

---

<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: [December 6, 2021, 1:46am UTC](https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923/2 "2021-12-06T01:46:12Z")

</div>

Just use `_site_` and it will bind to all available interfaces.

---

<div class="post-metadata">

### Author: ![houmie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/houmie/32/78999_2.png) [@houmie](https://discuss.elastic.co/u/houmie)
#### Post date: [December 6, 2021, 9:29am UTC](https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923/3 "2021-12-06T09:29:04Z")

</div>

Thanks for your reply.

I'm sorry I'm not following. According to this [page](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html#network-interface-values), site is for site-local addresses.

**`_site_`**  
Any site-local addresses on the system, for example 192.168.0.1 .

I would like to bind to both IPv4 and IPv6. I don't think this is the right solution. Or do you mean I should use `network.host: _site_` or something?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 6, 2021, 3:59pm UTC](https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923/4 "2021-12-06T15:59:53Z")

</div>

yes try `network.host: _site_`

---

<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: [January 3, 2022, 4:00pm UTC](https://discuss.elastic.co/t/how-to-set-network-host-to-listen-to-ipv6-as-well/290923/5 "2022-01-03T16:00:07Z")

</div>

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