Can't access Discourse by IP address on Vagrant

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.

Did you try 127.0.0.1:4000 ?

1 Like

yes, without success

Using Vagrant for development is no longer recommended: HOWTO Set up a development environment using vagrant (Ubuntu guide).

3 Likes