If you got an empty page with no errors (and no warnings trying to get there...) it is likely that your server is working, and you are trying to access it correctly, but the server is not serving anything. Most of the time, if the server is not present, you will get a timeout error saying the browser could not connect to server xxx. Or the site can't be reached, or something.
I am not however much of an expert in figuring out WHY it isn't showing anything (I used a different lib for http servers), but I am sure someone else on this list is. I can only tell you that you probably at least launched the server correctly. Have you tried the example on the page in the docs? (about 3/4 of the way down). https://docs.python.org/3/library/http.server.html If that doesn't work, it's possible you have a firewall or browser rule blocking something... and it if does work, you can look back at your code to see what might be wrong. (I suggest playing with the log_request, log_error, and log_message parameters to figure out what is happening.) OF course, that all assumes that someone else smarter than I on this list doesn't come forth and just say... "well, just do this, and poof, all will be good". Sorry it's not more. Dan > -----Original Message----- > From: Python-list [mailto:python-list-bounces+d.strohl=f5....@python.org] > On Behalf Of wrh8...@gmail.com > Sent: Thursday, April 14, 2016 1:50 PM > To: python-list@python.org > Subject: Re: how to setup for localhost:8000 > > On Thursday, April 14, 2016 at 2:23:36 PM UTC-4, Andrew Farrell wrote: > > What happens when you type > > > > http://localhost:8000 > > > > Into the address bar of your browser as this is running? > > > > On Thu, Apr 14, 2016 at 12:46 PM, <wrh8...@gmail.com> wrote: > > > > > Hi, > > > > > > I am working on window 7 and Python 3.5 to setup a localhost:8000 > > > but it did not get through as shown below: > > > > python -m http.server > > > Serving HTTP on 0.0.0.0 port 8000 ... > > > > > > But it did not show the results. > > > > > > Can someone help me how to setup the localhost? > > > > > > Thanks, > > > Wen-Ruey > > > > > > -- > > > https://mail.python.org/mailman/listinfo/python-list > > > > > hi Andrew, > > Yes. after I type http:\\localhost:8000, the browser did not show anything > except a empty page without any errors. > > Thanks, > Wen-Ruey > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list