python - SimpleHTTPServer: other devices can't connect to the server -
lately i've been playing python discover potential , i've stumbled upon simplehttpserver.
i'm on windows 10.
i run:
python -m simplehttpserver the output is:
serving http on 0.0.0.0 port 8000 ... i've opened browser both on smartphone , tablet, none of them can connect server when type "http://127.0.0.1:8000".
(translating italian, maybe not exact translation)
ipad: "safari can't open page because server has stopped responding"
android: "webpage not respond. webpage may temporarily not available or have been moved address"
why not work? how fix this?
127.0.0.1 ip address of local system (its associated hostname "localhost"). in other words, if type 127.0.0.1:8000 on tablet or android device, browser on device try connect server running on same device, listening on port 8000. you'll need find out ip address of computer you're running python on, , type instead. can use ifconfig command on unix, or ipconfig on windows.
Comments
Post a Comment