# Listening only on local interface

**URL:** <https://discuss.elastic.co/t/listening-only-on-local-interface/3369>\
**Category:** Elasticsearch\
**Created:** [September 25, 2010, 3:28pm UTC](https://discuss.elastic.co/t/listening-only-on-local-interface/3369 "2010-09-25T15:28:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjkerkhoff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjkerkhoff/32/3317_2.png) [@rjkerkhoff](https://discuss.elastic.co/u/rjkerkhoff)\
**Post date:** [September 25, 2010, 3:28pm UTC](https://discuss.elastic.co/t/listening-only-on-local-interface/3369/1 "2010-09-25T15:28:51Z")

</div>

I want to run elasticsearch _only_ on the local interface so i read  
the documentation and started the service with 'elasticsearch -f -  
Dnetwork.host=_local_'. At this point it correctly uses the ipv4 local  
interface but it's still opening up to the external interface over  
ipv6. Is this correct behaviour or am i'm missing something?  
Is there a way to disable this ipv6 listener?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 25, 2010, 10:15pm UTC](https://discuss.elastic.co/t/listening-only-on-local-interface/3369/2 "2010-09-25T22:15:51Z")

</div>

_local_ does not mean the just the local interface, it means using what the  
computers states is the local inet address. You can set it to 127.0.0.1 or  
localhost.

On Sat, Sep 25, 2010 at 5:28 PM, rjk [rjkerkhoff@gmail.com](mailto:rjkerkhoff@gmail.com) wrote:

> I want to run elasticsearch _only_ on the local interface so i read  
> the documentation and started the service with 'elasticsearch -f -  
> Dnetwork.host=_local_'. At this point it correctly uses the ipv4 local  
> interface but it's still opening up to the external interface over  
> ipv6. Is this correct behaviour or am i'm missing something?  
> Is there a way to disable this ipv6 listener?
> 
> Thanks in advance!

---

<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 6, 2017, 4:18am UTC](https://discuss.elastic.co/t/listening-only-on-local-interface/3369/3 "2017-07-06T04:18:56Z")

</div>

Closed on July 6, 2017, 4:18am UTC


