# Can we access Elastic Search API over Internet, i.e. Using IP address of server?

**URL:** <https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455>\
**Category:** Elasticsearch\
**Created:** [January 18, 2016, 2:04pm UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455 "2016-01-18T14:04:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![trushad](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@trushad](https://discuss.elastic.co/u/trushad)\
**Post date:** [January 18, 2016, 2:04pm UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/1 "2016-01-18T14:04:07Z")

</div>

Can we access Elastic Search API over Internet, i.e. Using IP address of server ?

---

<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:** [January 18, 2016, 2:53pm UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/2 "2016-01-18T14:53:17Z")

</div>

Yes you can.

---

<div class="post-metadata">

**Author:** ![trushad](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@trushad](https://discuss.elastic.co/u/trushad)\
**Post date:** [January 19, 2016, 6:57am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/3 "2016-01-19T06:57:49Z")

</div>

In my case I am not able to access ES API using IP address of server. Can you please let me know the changes that has to be made in config file or where ever it is needed to make it work.

---

<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:** [January 19, 2016, 7:18am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/4 "2016-01-19T07:18:44Z")

</div>

network.host is what you need to modify if you want to expose your node.

---

<div class="post-metadata">

**Author:** ![trushad](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@trushad](https://discuss.elastic.co/u/trushad)\
**Post date:** [January 19, 2016, 9:22am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/5 "2016-01-19T09:22:58Z")

</div>

I have Elasticsearch 2.1.0 Hosted on Azure Virtual Machine, I have tried with setting network.host to public IP of Server. But still it doesnt work for me. Is there any other Network setting?

---

<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:** [January 19, 2016, 2:56pm UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/6 "2016-01-19T14:56:57Z")

</div>

Check your azure network settings. Endpoints.  
9200 port should be opened.

---

<div class="post-metadata">

**Author:** ![trushad](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@trushad](https://discuss.elastic.co/u/trushad)\
**Post date:** [January 20, 2016, 6:57am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/7 "2016-01-20T06:57:57Z")

</div>

Still no luck. When setting Public IP to network.host in Config, ES running window automatically gets terminated. Can you please send me sample Config file where you have configured Public IP address and accessed the ES API over Internet. Thanks in advance.

---

<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:** [January 20, 2016, 7:57am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/8 "2016-01-20T07:57:11Z")

</div>

Sorry I can't.

May be the other way around?

You copy and paste all settings here and do some screenshots of your azure network settings?

---

<div class="post-metadata">

**Author:** ![trushad](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@trushad](https://discuss.elastic.co/u/trushad)\
**Post date:** [January 20, 2016, 9:33am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/9 "2016-01-20T09:33:29Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/1/179dfbeacfa8c6350da63a37c8fe01c2a61a796f.JPG)

 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/ab5d9355dd04a28facfb27ce9d2e657bea2f953f.JPG)  
here are the settings done in Elastisearch.yml  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/22280447f51d57d0ee91c3903df7ab9f2bbc47ee.JPG)

---

<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:** [January 22, 2016, 11:08am UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/10 "2016-01-22T11:08:38Z")

</div>

I think you need to set:

```auto
network.host: 10.52.88.31

```

If it does not work, try with:

```auto
network.host: 13.67.60.228

```

---

<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 5, 2017, 11:22pm UTC](https://discuss.elastic.co/t/can-we-access-elastic-search-api-over-internet-i-e-using-ip-address-of-server/39455/11 "2017-07-05T23:22:18Z")

</div>


