# Failed to connect to localhost port 9200: Connection refused

**URL:** <https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/312954>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 25, 2022, 5:45pm UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/312954 "2022-08-25T17:45:56Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![ishan.abhinit](https://avatars.discourse-cdn.com/v4/letter/i/d07c76/32.png) [@ishan.abhinit](https://discuss.elastic.co/u/ishan.abhinit)\
**Post date:** [August 31, 2022, 5:17pm UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/312954/15 "2022-08-31T17:17:08Z")

</div>

Thanks for your help. There was a issue with the RAM of the virtual machine. Increased the RAM and it works now.

---

_[View the full topic](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/312954)._
