0

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?

2 Answers 2

2

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.

2
  • +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, 2011 at 22:27
  • Thanx a lot.. It was my silly mistake :) Apr 25, 2011 at 4:36
1

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

./manage.py runserver 0.0.0.0:8000
1
  • yes. This command perfectly works. Apr 25, 2011 at 4:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .