Shane <shanesmi...@gmail.com> added the comment:

For the basic invocation:

>python -m http.server 8080
Serving HTTP on :: port 8080 (http://[::]:8080/) ...

It just sits there, because I can't access it (http://[::]:8080/ is not a valid 
address, so far as I know, and inserting my IP address doesn't find it either). 
 If I bind it to an IP address, it works as expected (using 127.0.0.1 from the 
docs, for the sake of consistency).  For the following messages, I'm starting 
up the server in my user directory, browsing to http://127.0.0.1:8080/ in 
Chrome, and following the Documents link.

>python -m http.server 8080 --bind 127.0.0.1
Serving HTTP on 127.0.0.1 port 8080 (http://127.0.0.1:8080/) ...
127.0.0.1 - - [04/Jan/2020 15:15:18] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2020 15:15:18] code 404, message File not found
127.0.0.1 - - [04/Jan/2020 15:15:18] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2020 15:15:28] "GET /Documents/ HTTP/1.1" 200 -

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39211>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to