I wanted to acess the web page that i did in django in all devices(mobile and desktop) connected in my network, i tried:
- just python manage.py runserver and acess the http://127.0.0.1:8000/ given by the console. The chrome of my mobile gives me "connection refused"
- put the ip in ALLOWED_HOST and python manage.py runserver my_ip:8000 my_ip is the number of my ip that the https://www.whatismyip.com/ gives me.
- python manage.py runserver 0:8000, it gives me [Errno 11001] getaddrinfo failed
what can i do?
windows key + rthen type incmd. In the command promt typeipconfigwhich will give you your ipv4. That is what you can type in to yourALLOWED_HOSTSin thesettings.py. Then to run the server just run the commanpython manage.py runserver my_ip:8000- Edwin Cruz