Friday, 15 June 2012

python - GET requests aren't returning from SimpleHTTPServer -



python - GET requests aren't returning from SimpleHTTPServer -

i'm trying host html document on python's simplehttpserver, , i'm having bit of trouble.

the server works fine locally. can access document @ localhost:8000/test.html.

however, when seek access document phone (at http://xx.xxx.xx.xx:8000/test.html), doesn't work. unusual thing can see request beingness logged simplehttpserver:

c:\users\[...]\documents\test>python -m simplehttpserver serving http on 0.0.0.0 port 8000 ... xx.xxx.xx.xx - - [24/jun/2014 15:20:12] "get /test.html http/1.1" 200 -

it looks same request localhost, except ip address. it's not returning.

this seems issue windows firewall, i'm bit stumped how be. i've added rules allow inbound , outbound connections python.exe, on tcp , udp inbound, , on protocols outbound, , it's still not working. i've turned firewall off entirely, , same thing happens.

any suggestions?

whoops, connecting through wrong router, , getting firewalled. i'm not sure how phone managed that, but, well, problem solved?

python windows

No comments:

Post a Comment