# Only can access elastic and kibana from loscalhost

**URL:** <https://discuss.elastic.co/t/only-can-access-elastic-and-kibana-from-loscalhost/225371>\
**Category:** Kibana\
**Created:** [March 27, 2020, 9:23am UTC](https://discuss.elastic.co/t/only-can-access-elastic-and-kibana-from-loscalhost/225371 "2020-03-27T09:23:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![21285yang](https://avatars.discourse-cdn.com/v4/letter/2/8c91f0/32.png) [@21285yang](https://discuss.elastic.co/u/21285yang)\
**Post date:** [March 27, 2020, 9:23am UTC](https://discuss.elastic.co/t/only-can-access-elastic-and-kibana-from-loscalhost/225371/1 "2020-03-27T09:23:04Z")

</div>

Hi, I'm newer for ELK.

I install windows MSI version of elastic.

right now I only can access localhost:9200 or localhost:5601

if I change the localhost to IP, It can not be accessed.

could someone tell me how to fix it. thanks

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 27, 2020, 12:53pm UTC](https://discuss.elastic.co/t/only-can-access-elastic-and-kibana-from-loscalhost/225371/2 "2020-03-27T12:53:01Z")

</div>

You have to specify `server.host` in your `kibana.yml`:

> ```
> server.host:
> 
> ```
> 
> Default: "localhost" This setting specifies the host of the back end server. To allow remote users to connect, set the value to the IP address or DNS name of the Kibana server.

> **[Configure Kibana | Kibana Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/settings.html)**

Same thing for Elasticsearch - it's called `network.host` there: [https://www.elastic.co/guide/en/elasticsearch/reference/current/network.host.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/network.host.html)

---

<div class="post-metadata">

**Author:** ![21285yang](https://avatars.discourse-cdn.com/v4/letter/2/8c91f0/32.png) [@21285yang](https://discuss.elastic.co/u/21285yang)\
**Post date:** [March 29, 2020, 6:23am UTC](https://discuss.elastic.co/t/only-can-access-elastic-and-kibana-from-loscalhost/225371/3 "2020-03-29T06:23:57Z")

</div>

If I put priavte ip like 172.16.x.x, it doesn't work.  
I config DNS name in kibana.yml instead of ip, it works for me.

in Elasticsearch, if I config network.host, the service run with error.

---

<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 26, 2020, 6:23am UTC](https://discuss.elastic.co/t/only-can-access-elastic-and-kibana-from-loscalhost/225371/4 "2020-04-26T06:23:58Z")

</div>

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