Answer the question
In order to leave comments, you need to log in
I launched a local Django server, but how can I view the page through my phone via wifi?
I launched a local Django server, but how can I view the page through my phone via wifi?
OC Ubuntu 16.04
Django 2.0
Tried to enter on (Phone) 127.0.0.1:8000 but - Can't establish a connection with site.
What can be done?
Answer the question
In order to leave comments, you need to log in
ngrok is a handy thing, it allows you to share localhost + https distributes, you can watch not only in your wifi
type in the address bar http://ip:port
, where ip is the IP address of the host Django is running on, port is the port Django is listening on. if it doesn't help, try again, replacing http with https. if it doesn't help, check if Django is really listening on the specified port; whether the specified IP is really the IP of the Django host and that this IP is from the same subnet as the IP address on the wi-fi phone; Is the port blocked by a firewall?
Tried to enter on (Phone) 127.0.0.1:8000 but - Can't establish a connection with site.
... runserver 0.0.0.0:8000
http://192.168.xxx.yyy:8000
if no firewall additionally blocks it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question