# Access from the Local Network

**URL:** <https://discuss.elastic.co/t/access-from-the-local-network/288351>\
**Category:** Elasticsearch\
**Created:** [November 3, 2021, 5:22pm UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351 "2021-11-03T17:22:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)\
**Post date:** [November 3, 2021, 5:22pm UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/1 "2021-11-03T17:22:06Z")

</div>

I have a one node Elasticsearch server that is sitting on 192.168.30.6. I would like a number of devices, on different local subnets to be able to hit this server on port 9200. I have my Elasticsearch.yml configured so the network.host is 192.168.30.6 and the http.port is 9200.

If I try to reach this on 9200 from another local subnet I cannot. Am I doing something wrong in the config?

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [November 3, 2021, 6:49pm UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/2 "2021-11-03T18:49:49Z")

</div>

This seems to be network related. If you can access it from the same subnet and you have no special configurations in Elasticsearch.yml, then it is exposed as normal.

What OS is the machine that cannot access the endpoint ? Have you tried nmap / telnet or traceroute to see that route the connection is taking ?

---

<div class="post-metadata">

**Author:** ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)\
**Post date:** [November 3, 2021, 7:09pm UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/3 "2021-11-03T19:09:15Z")

</div>

I can ping it and traceroute to it. When I try to port scan it does not come back successful. Thats what has me thinking its the config on Elasticsearch that I do not have correct. I am not using UFW on the Elasticsearch node, if that helps. Its turned off.

---

<div class="post-metadata">

**Author:** ![SteveP](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@SteveP](https://discuss.elastic.co/u/SteveP)\
**Post date:** [November 3, 2021, 7:12pm UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/4 "2021-11-03T19:12:49Z")

</div>

One other thing...when I try to use my browser and connect to [http://192.168.30.6:9200](http://192.168.30.6:9200) it tells me it refuses to connect. Not sure if that is helpful.

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [November 3, 2021, 7:32pm UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/5 "2021-11-03T19:32:42Z")

</div>

Can you post your Elasticsearch.yml? Also what responses do you get when you try those commands on the local box ?

> curl -X GET "[http://ipaddress:9200/\_cluster/health](http://ipaddress:9200/_cluster/health)"

---

<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:** [November 4, 2021, 12:10am UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/6 "2021-11-04T00:10:29Z")

</div>

Unless this cluster (node) is on an internet exposed network, then just set `network.host: 0.0.0.0` to make access a little simpler.

---

<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:** [December 2, 2021, 12:11am UTC](https://discuss.elastic.co/t/access-from-the-local-network/288351/7 "2021-12-02T00:11:23Z")

</div>

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