how to setup for localhost:8000

Pierre Quentel pierre.quentel at gmail.com
Fri Apr 15 15:03:46 EDT 2016


Le jeudi 14 avril 2016 22:50:33 UTC+2, wrh... at gmail.com a écrit :
> 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, <wrh8609 at 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

Hi,

When you type http://localhost:8000, do you see something in the console after the line  "Serving HTTP on 0.0.0.0 port 8000 ..." ?

If the server actually serves requests on port 8000 you should see a log message such as

127.0.0.1 - - [15/Apr/2016 20:57:32] "GET / HTTP/1.1" 200 -



More information about the Python-list mailing list