Access Python Development Server from External IP

Question:

I am learning Django and have deployed apps on my iMac locally. I want to show the apps from external IPs over the internet. I did add an exception to the firewall for port 8000, and ran the python dev server over 8000. Able to access at localhost, but not over the net. However, when I tried XAMPP (Apache) over the same port 8000, I can access the site externally, despite needing to change the httpd-xampp.conf file. Is there a similar file for the python server? How can I access the dev server from external IP’s?

Environment: Mac OSX 10.5.8, Python 2.5, Django 1.2.5

Thanks in advance!

Asked By: tomato

||

Answers:

python manage.py runserver 0.0.0.0:8000

This will make it listen to any address. Quite useful when you want to develop over ssh from a machine that you cannot install stuff on.

Answered By: Uku Loskit
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.