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 Answers2

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.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84
1

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

./manage.py runserver 0.0.0.0:8000
Mike
  • 22,310
  • 7
  • 56
  • 79