# Can't curl a just installed elastic in a vm - time out issues

**URL:** <https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359>\
**Category:** Elasticsearch\
**Created:** [January 17, 2021, 6:08pm UTC](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359 "2021-01-17T18:08:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Poirier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simon_poirier/32/78601_2.png) [@Simon\_Poirier](https://discuss.elastic.co/u/Simon_Poirier)\
**Post date:** [January 17, 2021, 6:08pm UTC](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359/1 "2021-01-17T18:08:50Z")

</div>

Hi there, I have a VM with Elastic and kibana working fine in an 20.04 ubuntu.  
I am now trying to send curl operations on the rest api, from my host, but i got timed out.

in the vm it's working fine.

when i do : sudo ufw status  
9200 is allowed from anywhere

the network.host is set to 0.0.0.0 and the port to 9200.

I don't know where to look now.

Thanks for your help !

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 17, 2021, 6:34pm UTC](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359/2 "2021-01-17T18:34:35Z")

</div>

From on the VM host where elasticsearch is installed what do you get get when you run

`curl http://localhost:9200`

Then run

`curl http://<hostnetworkip>:9200`

The try that from another host let us know  
Do you get the same thing?

Did you read the [difference between dev and production](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html#dev-vs-prod-mode) mode?

Also you can always try to telnet to the elasticsearch host and port 9200 from another server if that fails then perhaps you may have a firewall issue

---

<div class="post-metadata">

**Author:** ![Simon\_Poirier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simon_poirier/32/78601_2.png) [@Simon\_Poirier](https://discuss.elastic.co/u/Simon_Poirier)\
**Post date:** [January 17, 2021, 7:39pm UTC](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359/3 "2021-01-17T19:39:27Z")

</div>

i didn't tryed the curl http://:9200 in the VM.

And now it worked on my host.

Thank you very much !

---

<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:** [February 14, 2021, 7:39pm UTC](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359/4 "2021-02-14T19:39:47Z")

</div>

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