Answer the question
In order to leave comments, you need to log in
Django: How to open development server for web access?
Is it possible to open Django's built-in server to be accessed by external IP? How? -- if I may.
Direct indication of such an IP in runserver is prohibited:
Error: That IP address can't be assigned to.
Answer the question
In order to leave comments, you need to log in
As already mentioned above - ./manage.py runserver 0.0.0.0:8000
Next, if the machine is behind a router, forward the port (NAT) or, if you are not afraid and do not need access to other machines from the outside, make a DMZ.
If there is a firewall (and the router is configured) - look at the firewall rules.
Try running ./manage.py runserver 0.0.0.0:8000
An important, but not obvious, nuance is that you need superuser privileges to open a port below 1024.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question