# Elastic Search not accessible using public IP

**URL:** <https://discuss.elastic.co/t/elastic-search-not-accessible-using-public-ip/223714>\
**Category:** Elasticsearch\
**Created:** [March 16, 2020, 8:48am UTC](https://discuss.elastic.co/t/elastic-search-not-accessible-using-public-ip/223714 "2020-03-16T08:48:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apurv\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apurv_jain/32/64486_2.png) [@Apurv\_Jain](https://discuss.elastic.co/u/Apurv_Jain)\
**Post date:** [March 16, 2020, 8:48am UTC](https://discuss.elastic.co/t/elastic-search-not-accessible-using-public-ip/223714/1 "2020-03-16T08:48:43Z")

</div>

Hi,

I have installed Elastic Search on RHEL 6.9. I am facing a weird issue, I am running elastic on port 17000. when I am trying to access ElasticSearch through IP address it says Connection Refused, from internal as well as external network. However, when I am running a nodejs server on the same port, it is accessible through IP address from anywhere. Clearly it's not a firewall issue.

I even tried configuring network.publish\_host and network.host, however with these fields configured the elasticsearch service didn't start.

I even tried updating /etc/hosts and restarted the network service still no luck. it still says connection refused.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 16, 2020, 2:05pm UTC](https://discuss.elastic.co/t/elastic-search-not-accessible-using-public-ip/223714/2 "2020-03-16T14:05:31Z")

</div>

Which network interfaces is Elasticsearch bound to? If you do not change those fields, Elasticsearch binds to localhost by default, which means it will not be reachable from the network.

If Elasticsearch does not start, please share logfiles.

Thanks!

---

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [March 18, 2020, 9:13am UTC](https://discuss.elastic.co/t/elastic-search-not-accessible-using-public-ip/223714/3 "2020-03-18T09:13:26Z")

</div>

Hi @Apurv_Jain welcome 🙂 .

`i hope below link will help you to access Elastic search based on IP step by step-`

[Access Elastic search from remote](https://discuss.elastic.co/t/elasticsearch-7-6-1-service-wont-start-in-ubuntu-server-18-04/222341/12)

Thanks  
HadoopHelp

---

<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:** [April 15, 2020, 9:13am UTC](https://discuss.elastic.co/t/elastic-search-not-accessible-using-public-ip/223714/4 "2020-04-15T09:13:27Z")

</div>

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