Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|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
add comment

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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