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:
- App runs in local system
- ALLOWED_HOSTS = ['*']
- I have disabled firewall completely
- I open incoming and outgoing connection for port 8000.
- 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:
- Specify the server machine ip, example :
ALLOWED_HOSTS = ['192.168.1.1']
- Try with a different port, example:
python manage.py runserver 192.168.1.1:8082
- Then in your router/firewall, configure the proper port forwarding.