Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Django website on iphone

Tags:

iphone

django

I apologize for such a beginner question, but I'm stuck. I'm starting learn web development and I want to test out something I am hosting locally using Django runserver command. I would like to test it on my iPhone. According to this question, I just need to point my iPhone to my Windows 7 ip address (which I found through ipconfig). When I try to, I get the error: "Safari could not open the page because the server stopped responding" (a time-out).

Is there anything else that I need to do?

like image 314
emoore Avatar asked Oct 05 '11 20:10

emoore


1 Answers

In addition to using the correct IP, your runserver command should listen on 0.0.0.0(all IPs).

runserver 0.0.0.0:8000
like image 132
Kekoa Avatar answered Sep 29 '22 21:09

Kekoa