# Another EC2 publish\_host public ip problem

**URL:** <https://discuss.elastic.co/t/another-ec2-publish-host-public-ip-problem/20319>\
**Category:** Elasticsearch\
**Created:** [October 19, 2014, 5:38am UTC](https://discuss.elastic.co/t/another-ec2-publish-host-public-ip-problem/20319 "2014-10-19T05:38:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_enzinger](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@martin\_enzinger](https://discuss.elastic.co/u/martin_enzinger)\
**Post date:** [October 19, 2014, 5:38am UTC](https://discuss.elastic.co/t/another-ec2-publish-host-public-ip-problem/20319/1 "2014-10-19T05:38:59Z")

</div>

Hi,

I can't figure out why Elasticsearch still can't be reached from the public  
ip of the ec2 instance. This is my config file

cloud.aws.access\_key: "AKIAXXXXXXXXXPWEW2A"  
cloud.aws.secret\_key: "EvU0I5XXXXXXXXXXXXXx+b+FlRXXXSSDFfM2Z"

plugin.mandatory: "cloud-aws"

cluster.name: "escluster"

node.name: "Iron Fist"

discovery.type: "ec2"  
discovery.ec2.groups: "launch-wizard-4"  
discovery.ec2.host\_type: "public\_ip"  
discovery.ec2.ping\_timeout: "30s"  
discovery.ec2.availability\_zones: "us-east-1a"  
cloud.aws.region: "us-east"

discovery.zen.ping.multicast.enabled: false

network.publish\_host: "54.31.403.195"

Do you have a hint for me? Curl-ing the private ip works.  
Your help is much appreciated.

Thank you, best regards

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/59f12b8d-deef-4c0b-acea-94fcf4237d73%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/59f12b8d-deef-4c0b-acea-94fcf4237d73%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2014, 9:24am UTC](https://discuss.elastic.co/t/another-ec2-publish-host-public-ip-problem/20319/2 "2014-10-20T09:24:38Z")

</div>

Hi Martin,

Did you check your firewall settings? Did you open 9200 ports so they can be accessible from your local machine?

BTW, those settings are not used. You can comment/remove them:

discovery.zen.ping.multicast.enabled: false  
network.publish\_host: "54.31.403.195"

--  
David Pilato | Technical Advocate | [elasticsearch.com](http://elasticsearch.com)  
[david.pilato@elasticsearch.com](mailto:david.pilato@elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 19 octobre 2014 à 07:40:46, [martin.enzinger@gmail.com](mailto:martin.enzinger@gmail.com) ([martin.enzinger@gmail.com](mailto:martin.enzinger@gmail.com)) a écrit:

Hi,

I can't figure out why Elasticsearch still can't be reached from the public ip of the ec2 instance. This is my config file

cloud.aws.access\_key: "AKIAXXXXXXXXXPWEW2A"  
cloud.aws.secret\_key: "EvU0I5XXXXXXXXXXXXXx+b+FlRXXXSSDFfM2Z"

plugin.mandatory: "cloud-aws"

cluster.name: "escluster"

node.name: "Iron Fist"

discovery.type: "ec2"  
discovery.ec2.groups: "launch-wizard-4"  
discovery.ec2.host\_type: "public\_ip"  
discovery.ec2.ping\_timeout: "30s"  
discovery.ec2.availability\_zones: "us-east-1a"  
cloud.aws.region: "us-east"

discovery.zen.ping.multicast.enabled: false

network.publish\_host: "54.31.403.195"

Do you have a hint for me? Curl-ing the private ip works.  
Your help is much appreciated.

## Thank you, best regards

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/59f12b8d-deef-4c0b-acea-94fcf4237d73%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/59f12b8d-deef-4c0b-acea-94fcf4237d73%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5444d4d6.19495cff.8fc%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5444d4d6.19495cff.8fc%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:55am UTC](https://discuss.elastic.co/t/another-ec2-publish-host-public-ip-problem/20319/3 "2017-07-06T00:55:06Z")

</div>


