Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107185
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2016-04-17 10:11 -0700 |
| References | (1 earlier) <CA+y5TLbED=JjcPG4-qfn=7tH=Y=6PQa+MMpvh_8uNT2srh7dBw@mail.gmail.com> <mailman.112.1460658199.15650.python-list@python.org> <2e597a56-00ab-4370-b337-667f34eac56a@googlegroups.com> <a5cbb46c-8d7d-482f-a608-57ba48e2df40@googlegroups.com> <67abca1d-8ac5-4a9a-825d-3aa76d9ccf3f@googlegroups.com> |
| Message-ID | <60e461a5-95ff-49c0-9beb-7bc595c057e1@googlegroups.com> (permalink) |
| Subject | Re: how to setup for localhost:8000 |
| From | Pierre Quentel <pierre.quentel@gmail.com> |
> > 127.0.0.1 - - [15/Apr/2016 20:57:32] "GET / HTTP/1.1" 200 - > Hi Pierre, > > When I type http://localhost:8000, I did not see anything in the console after the line "Serving HTTP on 0.0.0.0 port 8000 ... I believe the way I ran was not correct as shown below: > > python -m http.server > Serving HTTP on 0.0.0.0 port 8000 ... > > Also if I use internet Explorer, it shows HTTP 404 errors. > Do you think the way I am doing of the localhost:8000 setting was not correct? > > Thanks, > Wen-Ruey If you're not seeing anything there, it is sure that the Python server doesn't serve requests on port 8000. But if you're seeing a blank screen or a 404 error instead of a message saying that a connection couldn't be set up, it is likely that another HTTP server is running on your machine on port 8000. Could you try to start the server on another port, eg "python -m http.server 8085" and see what happens in the browser with "http://127.0.0.1:8085" ?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-14 10:46 -0700
Re: how to setup for localhost:8000 Peter Otten <__peter__@web.de> - 2016-04-14 20:07 +0200
Re: how to setup for localhost:8000 Andrew Farrell <armorsmith42@gmail.com> - 2016-04-14 13:06 -0500
Re: how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-14 13:50 -0700
RE: how to setup for localhost:8000 Dan Strohl <D.Strohl@F5.com> - 2016-04-14 21:14 +0000
Re: how to setup for localhost:8000 Pierre Quentel <pierre.quentel@gmail.com> - 2016-04-15 12:03 -0700
Re: how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-16 15:35 -0700
Re: how to setup for localhost:8000 Monte Milanuk <memilanuk@gmail.com> - 2016-04-17 09:27 -0700
Re: how to setup for localhost:8000 Pierre Quentel <pierre.quentel@gmail.com> - 2016-04-17 10:11 -0700
Re: how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-22 14:41 -0700
Re: how to setup for localhost:8000 Random832 <random832@fastmail.com> - 2016-04-14 14:36 -0400
Re: how to setup for localhost:8000 Chris Angelico <rosuav@gmail.com> - 2016-04-15 04:39 +1000
Re: how to setup for localhost:8000 Vito De Tullio <vito.detullio@gmail.com> - 2016-04-15 07:59 +0200
Re: how to setup for localhost:8000 Chris Angelico <rosuav@gmail.com> - 2016-04-15 17:38 +1000
csiph-web