Home > Mobile >  Cant access Django development server with 0.0.0.0:8000
Cant access Django development server with 0.0.0.0:8000

Time:08-28

I am trying to run my Django app on a windows system with python manage.py runserver 0.0.0.0:8000. But it doesnt runs in other systems. Following steps I have already followed:

  1. App runs in local system
  2. ALLOWED_HOSTS = ['*']
  3. I have disabled firewall completely
  4. I open incoming and outgoing connection for port 8000.
  5. Tried with python manage.py runserver 192.xx.xx.xx:8000

What am I missing?

Additional note: I already tried and run the similar app in an ubuntu server and it works perfectly fine.

CodePudding user response:

python manage.py runserver 127.100.10.2:8000

dont change the 127 others u can change

CodePudding user response:

I have a Django app running in my small office with windows, follow this steps:

  1. Specify the server machine ip, example : ALLOWED_HOSTS = ['192.168.1.1']
  2. Try with a different port, example: python manage.py runserver 192.168.1.1:8082
  3. Then in your router/firewall, configure the proper port forwarding.
  • Related