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">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">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.
How can I access this web application from my host browser?
I tried adding this line - config.vm.network "private_network", ip: "55.55.55.5" in the vagrant file and then trying to run the "python manage.py runserver 0.0.0.0:80" command as per 1 of the solutions explained in previous discussions by others but I couldnt access the site from my host browser using 55.55.55.5:8000.
How can I access the web server from my browser?
Kindly help me,I'm quite new to vagrant.
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>

<p>You're forwarding port 8000 on the guest to 8000 on the host. Try:</p>

<pre><code>python manage.py runserver 0.0.0.0:8000
</code></pre>

<p>Then in your browser visit: <a href="http://localhost:8000" rel="nofollow">http://localhost:8000</a></p>

<p>That'll leave port 80 free if you end up wanting to run a web server for testing as well. Good luck!</p>

python django vagrant