# How should I configure network.host to bind to an aws elastic IP

**URL:** <https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912>\
**Category:** Elasticsearch\
**Created:** [February 3, 2017, 9:05pm UTC](https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912 "2017-02-03T21:05:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Southgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_southgate/32/15197_2.png) [@Robin\_Southgate](https://discuss.elastic.co/u/Robin_Southgate)\
**Post date:** [February 3, 2017, 9:05pm UTC](https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912/1 "2017-02-03T21:05:16Z")

</div>

I'm trying to set up an elasticsearch service to bind to the elastic IP assigned to the instance it's running on - but can't figure out the correct way.

I've tried:

network.host = [_local_, "[52.xxx.xxx.xxx](http://52.xxx.xxx.xxx)"]  
network.host = [52.xxx.xxx.xxx](http://52.xxx.xxx.xxx)  
network.host = 0.0.0.0

When starting with the elastic IP the service throws an unable to bind exception on restart and closes. When starting with 0.0.0.0 it stasrts but binds to the internal IP of the instance 10.0.0.x

So what should I be setting this to to corretly bind to the external IP?

---

<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:** [February 3, 2017, 10:17pm UTC](https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912/2 "2017-02-03T22:17:50Z")

</div>

Is the IP assigned to an interface on the host?

---

<div class="post-metadata">

**Author:** ![Robin\_Southgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robin_southgate/32/15197_2.png) [@Robin\_Southgate](https://discuss.elastic.co/u/Robin_Southgate)\
**Post date:** [February 3, 2017, 10:57pm UTC](https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912/3 "2017-02-03T22:57:27Z")

</div>

No I think there is a NAT layer since the instance is inside a VPC so en0 is bound to 10.0.0.x and somewhere outside AWS translates the external IP to the internal IP

---

<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:** [February 3, 2017, 11:16pm UTC](https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912/4 "2017-02-03T23:16:58Z")

</div>

You can't bind to an IP that doesn't exist on a local interface.

---

<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:** [March 3, 2017, 11:17pm UTC](https://discuss.elastic.co/t/how-should-i-configure-network-host-to-bind-to-an-aws-elastic-ip/73912/5 "2017-03-03T23:17:12Z")

</div>

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