# Can't access Discourse by IP address on Vagrant

**URL:** <https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489>\
**Category:** Support\
**Created:** [2016年十月13日 09:01 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489 "2016-10-13T09:01:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobiasmuehl](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tobiasmuehl](https://meta.discourse.org/u/tobiasmuehl)\
**Post date:** [2016年十月13日 09:01 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489/1 "2016-10-13T09:01:30Z")

</div>

I installed Discourse in a vagrant box, with the standard networking configuration (`config.vm.network :private_network, ip: "192.168.10.200"`).

When I connect to `localhost:4000` Discourse loads just fine, but on `192.168.10.200:4000` I’m getting `ERR_CONNECTION_REFUSED`.

How to access Discourse on Vagrant without referring to `localhost`?  
I need Discourse to be accessible from within another Vagrant box.

Please note that there’s no **app.yml** in the Vagrant version.

Edit: I don’t need this anymore as I’m moving to a hosted environment with a real domain name and docker, but the issue still remains and I’d like how to fix it.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2016年十月13日 16:11 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489/2 "2016-10-13T16:11:40Z")

</div>

Did you try `127.0.0.1:4000` ?

---

<div class="post-metadata">

**Author:** ![tobiasmuehl](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tobiasmuehl](https://meta.discourse.org/u/tobiasmuehl)\
**Post date:** [2016年十月21日 09:22 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489/3 "2016-10-21T09:22:05Z")

</div>

yes, without success

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年三月20日 17:37 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489/4 "2019-03-20T17:37:01Z")

</div>



---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2019年三月20日 18:34 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489/5 "2019-03-20T18:34:31Z")

</div>

Using Vagrant for development is no longer recommended: [(Superseded) Set up a development environment using Vagrant on Ubuntud - #28 by sam](https://meta.discourse.org/t/howto-set-up-a-development-environment-using-vagrant-ubuntu-guide/45277/28).

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2019年三月20日 18:34 UTC](https://meta.discourse.org/t/cant-access-discourse-by-ip-address-on-vagrant/51489/6 "2019-03-20T18:34:36Z")

</div>


