Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant is not forwarding when I run django runserver on ssh

I created a Vagrant Ubuntu (lucid32) box with Python & Django. My idea is start the VM, log into it with vagrant ssh, and then start Django by running:

manage.py runserver

which defaults to port 8000. The problem is that I can not access the Django server from the host's browser at http://127.0.0.1:8000. What can I do?

like image 455
Lucas Sampaio Avatar asked Mar 06 '13 18:03

Lucas Sampaio


1 Answers

You need to bind the server to the external IP with:

manage.py runserver 0.0.0.0:8000
like image 82
Daniel Roseman Avatar answered Nov 17 '22 01:11

Daniel Roseman