Access django server on VirtualBox/Vagrant machine from host browser?
<p>I have a Django web server on a VirtualBox/Vagrant machine running "bento/centos-6.7-i386".
I have followed this guide to create a Django project: <a href="https://docs.djangoproject.com/en/dev/intro/tutorial01/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/dev/intro/tutorial01/</a></p>

<p>I have a web server running at <a href="http://127.0.0.1:8000/" rel="nofollow noreferrer">http://127.0.0.1:8000/</a> inside my guest machine. This is the first time I am running a Django web server. It is supposed to be a hello world app.</p>

<p>How can I access this web application from my host browser?
I tried adding this line - <code>config.vm.network "private_network", ip: "55.55.55.5"</code> in the vagrant file and then tried to run the <code>python manage.py runserver 0.0.0.0:80</code> command as per 1 of the solutions explained in previous discussions by others but I couldn't access the site from my host browser using 55.55.55.5:8000.</p>

<p>How can I access the web server from my browser?</p>

<p>Following given is my Vagrant File:</p>

<pre><code># -- mode: ruby -- 
# vi: set ft=ruby : 
VAGRANTFILE_API_VERSION = "2" 
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 
config.vm.box = "bento/centos-6.7-i386" 
config.vm.network "forwarded_port", guest: 8000, host: 8000 
config.vm.network "forwarded_port", guest: 8080, host: 8080 
config.vm.network "forwarded_port", guest: 5000, host: 5000 
config.vm.network "private_network", ip: "10.10.10.10" 
end
</code></pre>