I just setup a django development server on a Linode and wanted to access it from outside. The server is running on port 8000. But the linode is not allowing me to access this port from outside.

I checked that iptables didn't have any rule set to block the traffic.

Is there some specific place where I need to configure the list of ports on which HTTP traffic is allowed from outside?

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

By default the Django dev server binds to 127.0.0.1. Bind it to 0.0.0.0 instead. But keep in mind that the dev server is a pile of bleep that's not for production use.

link|improve this answer
+1 - You can bind to 0.0.0.0 or to a single IP if you have many interfaces. You can also change the port number if you need to with manage.py runserver IP:port_number – laurent Apr 24 '11 at 22:27
Thanx a lot.. It was my silly mistake :) – Shailesh Kumar Apr 25 '11 at 4:36
feedback

too add to what ignacio said.. the full command is

./manage.py runserver 0.0.0.0:8000
link|improve this answer
yes. This command perfectly works. – Shailesh Kumar Apr 25 '11 at 4:37
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.