# Running rasa on 0.0.0.0 instead of localhost in container

**URL:** <https://forum.rasa.com/t/running-rasa-on-0-0-0-0-instead-of-localhost-in-container/46137>\
**Category:** Rasa Open Source\
**Created:** [July 25, 2021, 9:11pm UTC](https://forum.rasa.com/t/running-rasa-on-0-0-0-0-instead-of-localhost-in-container/46137 "2021-07-25T21:11:41Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![souvikg10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/souvikg10/32/93_2.png) [@souvikg10](https://forum.rasa.com/u/souvikg10)\
**Post date:** [July 27, 2021, 1:10pm UTC](https://forum.rasa.com/t/running-rasa-on-0-0-0-0-instead-of-localhost-in-container/46137/10 "2021-07-27T13:10:34Z")

</div>

By Default, Rasa runs on host=0.0.0.0, so no need to specify it

> <https://github.com/RasaHQ/rasa/blob/f78a6a17d5146248500630a2397ee099a24e0f5c/rasa/core/run.py#L221>

So if in your case, 0.0.0.0 is not pointing to localhost or you are not able to connect , it is likely that your /etc/hosts is not configured with the map of 0.0.0.0 to localhost or 127.0.0.1

while i understand this might be what you need, i would highly recommend against doing so because it essentially opens your server to potential attacks. instead use a proxy to protect direct exposure on the internet.

---

_[View the full topic](https://forum.rasa.com/t/running-rasa-on-0-0-0-0-instead-of-localhost-in-container/46137)._
