# Setting up Elastic on Ubuntu 18.04, cant display \[local host\]:9200

**URL:** <https://discuss.elastic.co/t/setting-up-elastic-on-ubuntu-18-04-cant-display-local-host-9200/196313>\
**Category:** Elasticsearch\
**Created:** [August 22, 2019, 12:00pm UTC](https://discuss.elastic.co/t/setting-up-elastic-on-ubuntu-18-04-cant-display-local-host-9200/196313 "2019-08-22T12:00:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhmariscal](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jhmariscal](https://discuss.elastic.co/u/jhmariscal)\
**Post date:** [August 22, 2019, 12:00pm UTC](https://discuss.elastic.co/t/setting-up-elastic-on-ubuntu-18-04-cant-display-local-host-9200/196313/1 "2019-08-22T12:00:39Z")

</div>

I am OK at ubuntu. I am trying to learn and explore Elastic and Kibana as a SIEM.  
I have tried this with fresh 18.04 and 19 Ubuntu server with the same results. Basically, I follow the directions here  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html)

I install all updates and these are my exact commands I put in:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - sudo apt-get install apt-transport-https  
 echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list sudo apt-get update && sudo apt-get install elasticsearch  
 sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable elasticsearch.service  
$ sudo systemctl start elasticsearch.service

Finally, I get to the cURL test and enter:  
$ curl -X GET "localhost:9200/?pretty"

and I get back:  
{  
"name" : "siemubuntu",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "P27ksrrSRQ6\_ZdMXYMyjYw",  
"version" : {  
"number" : "7.3.0",  
"build\_flavor" : "default",  
"build\_type" : "deb",  
"build\_hash" : "de777fa",  
"build\_date" : "2019-07-24T18:30:11.767338Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.1.0",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

However, when I open a browser and goto 192.168.10.206:9200, I get

# This site can’t be reached

**192.168.10.206** refused to connect.

The default FW is off and Webmin works fine (yes, updated!).

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Aamir\_A](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aamir_a/32/46023_2.png) [@Aamir\_A](https://discuss.elastic.co/u/Aamir_A)\
**Post date:** [August 22, 2019, 12:10pm UTC](https://discuss.elastic.co/t/setting-up-elastic-on-ubuntu-18-04-cant-display-local-host-9200/196313/2 "2019-08-22T12:10:48Z")

</div>

Make sure to set "network.host: 0.0.0.0" in elasticsearch.yml

---

<div class="post-metadata">

**Author:** ![jhmariscal](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jhmariscal](https://discuss.elastic.co/u/jhmariscal)\
**Post date:** [August 22, 2019, 2:01pm UTC](https://discuss.elastic.co/t/setting-up-elastic-on-ubuntu-18-04-cant-display-local-host-9200/196313/3 "2019-08-22T14:01:08Z")

</div>

Thanks. Made the change and now I get:

siemadmin@siemubuntu:~ curl -X GET "localhost:9200/?pretty" curl: (7) Failed to connect to localhost port 9200: Connection refused siemadmin@siemubuntu:~

I rebooted as well with no improvement.

---

<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:** [September 19, 2019, 2:14pm UTC](https://discuss.elastic.co/t/setting-up-elastic-on-ubuntu-18-04-cant-display-local-host-9200/196313/4 "2019-09-19T14:14:10Z")

</div>

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