Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to setup for localhost:8000

7,085 views
Skip to first unread message

wrh...@gmail.com

unread,
Apr 14, 2016, 5:47:03 PM4/14/16
to
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

Peter Otten

unread,
Apr 14, 2016, 6:08:19 PM4/14/16
to
wrh...@gmail.com wrote:

> 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 ...

That looks correct so far. Now open a browser and open

http://localhost:8000/


Andrew Farrell

unread,
Apr 14, 2016, 6:23:36 PM4/14/16
to
What happens when you type

http://localhost:8000

Into the address bar of your browser as this is running?
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Random832

unread,
Apr 14, 2016, 6:37:07 PM4/14/16
to
Just a note, some browsers will try to resolve this as www.localhost.com
- try http://127.0.0.1:8000 .

Chris Angelico

unread,
Apr 14, 2016, 6:40:12 PM4/14/16
to
On Fri, Apr 15, 2016 at 4:36 AM, Random832 <rand...@fastmail.com> wrote:
> Just a note, some browsers will try to resolve this as www.localhost.com
> - try http://127.0.0.1:8000 .

Huh? Why should the name 'localhost' get a dot com added?

ChrisA

wrh...@gmail.com

unread,
Apr 14, 2016, 8:50:33 PM4/14/16
to
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

Dan Strohl

unread,
Apr 14, 2016, 9:15:34 PM4/14/16
to
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
> --
> https://mail.python.org/mailman/listinfo/python-list

Vito De Tullio

unread,
Apr 15, 2016, 6:00:32 AM4/15/16
to
Chris Angelico wrote:

>> Just a note, some browsers will try to resolve this as www.localhost.com
>> - try http://127.0.0.1:8000 .
>
> Huh? Why should the name 'localhost' get a dot com added?

ask browser vendors...

--
By ZeD

Chris Angelico

unread,
Apr 15, 2016, 7:38:19 AM4/15/16
to
I'd more ask your local resolver. If the name 'localhost' can be
correctly resolved (it's commonly in your hosts file, and if not, your
local DNS resolver can easily be configured to be authoritative), no
additional TLD should be added ('localhost' is itself a valid TLD).

ChrisA

Pierre Quentel

unread,
Apr 15, 2016, 7:04:09 PM4/15/16
to
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 -

wrh...@gmail.com

unread,
Apr 16, 2016, 10:36:08 PM4/16/16
to
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

Monte Milanuk

unread,
Apr 17, 2016, 4:27:48 PM4/17/16
to
On 2016-04-16 15:35, wrh...@gmail.com wrote:

>> 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 -
> 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?
>

Do you have any anti-virus programs running? Its possible they may be
interfering with letting your python installation open a server on the
local host at all, or with letting your browser access it, if it is running.

What I get in the console looks like this:

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\Users\Monte Milanuk> python -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...

...and then once I open a browser window to 'localhost:8000', I get the
following in the console:

127.0.0.1 - - [17/Apr/2016 09:21:49] "GET / HTTP/1.1" 200 -

Which is the python http.server telling you that it responded to a
request from 127.0.0.1, completion code (200), etc. If you're not
seeing that, and you're instead getting 404 codes in the browswer
window, something on your machine is blocking it from seeing the server.

You might try '127.0.0.1:8000' instead of 'localhost:8000' in the
browser window, or you might try specifying different interface or port
numbers for the server when you start it. It *should* 'just work' as
is, with the basic 'python -m http.server' command, but obviously it
isn't, for whatever reason.

Pierre Quentel

unread,
Apr 17, 2016, 5:11:39 PM4/17/16
to

> > 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" ?

wrh...@gmail.com

unread,
Apr 22, 2016, 9:42:14 PM4/22/16
to
I followed your instruction but the page shows:
The 127.0.0.1 page isn't working

127.0.0.1 didn't send any data.
ERR_EMPTY_RESPONSE

and a lot of messages show on the command window..

wande...@gmail.com

unread,
Feb 1, 2018, 6:14:22 PM2/1/18
to

nathann...@gmail.com

unread,
Feb 25, 2019, 2:14:11 AM2/25/19
to

nathann...@gmail.com

unread,
Feb 25, 2019, 2:17:26 AM2/25/19
to
On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote:

0x906

unread,
Feb 25, 2019, 3:06:38 AM2/25/19
to
There is a chance that I missed something with the 0.0.0.0. but I am pretty sure that the localhost IP is 127.0.0.1.
> --
> https://mail.python.org/mailman/listinfo/python-list

Cameron Simpson

unread,
Feb 25, 2019, 3:46:33 AM2/25/19
to
On 24Feb2019 19:00, 0x906 <lis...@0x906.com> wrote:
>>> 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?
>
>There is a chance that I missed something with the 0.0.0.0. but I am pretty sure that the localhost IP is 127.0.0.1.

Yeah. 0.0.0.0 is the wildcard address: the server will be listening on
all the available addresses (127.0.0.1 and also any LAN address).

Wen-Ruey may simply be missing that it is just running a web server. To
actually see anything she/he needs to hit it with a web browser, for
example with a URL like:

http://127.0.0.1:8000/

Cheers,
Cameron Simpson <c...@cskk.id.au>

tommy yama

unread,
Mar 1, 2019, 2:40:19 PM3/1/19
to

jaymo...@gmail.com

unread,
Jul 7, 2019, 10:40:50 AM7/7/19
to
On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote:

jaymo...@gmail.com

unread,
Jul 7, 2019, 10:41:47 AM7/7/19
to
On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote:
On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote:

nabru

unread,
Jul 7, 2019, 4:57:25 PM7/7/19
to
If it says 'serving HTTP...' try visiting localhost:8000 on your browser
to see what happens.

--
~nabru

Alister

unread,
Jul 7, 2019, 5:28:12 PM7/7/19
to
failing that try showing your code so that we do not have to be psychic!



--
Nirvana? That's the place where the powers that be and their friends
hang out.
-- Zonker Harris

sanket...@gmail.com

unread,
Aug 10, 2019, 7:38:42 AM8/10/19
to
please set up my localhost:8000

mm0fmf

unread,
Aug 10, 2019, 8:27:24 AM8/10/19
to
On 10/08/2019 08:38, sanket...@gmail.com wrote:
> please set up my localhost:8000
>
Sure, pay me $8000 and I will do it for you.

Emrah Mutlu

unread,
Jun 29, 2022, 1:14:37 PM6/29/22
to
10 Ağustos 2019 Cumartesi tarihinde saat 11:27:24 UTC+3 itibarıyla mm0fmf şunları yazdı:
> On 10/08/2019 08:38, sanket...@gmail.com wrote:
> > please set up my localhost:8000
> >
> Sure, pay me $8000 and I will do it for you.

Try to here https://localhosts.mobi/8000

Nancy Ben

unread,
Oct 10, 2023, 8:07:25 AM10/10/23
to
🤑 รับคำสั่งซื้อสินค้าโดยตรงที่ http://bit.ly/3RPBnb1 โดยไม่ผ่านเอเย่นต์ | U369369 🤑

✅ เข้าเว็บไซต์
http://bit.ly/3RPBnb1

✅ สมัครสมาชิก
http://bit.ly/3RPBnb1

✅ ติดต่อเรา
http://bit.ly/3RPBnb1

✅ รับโปรโมชั่น
http://bit.ly/3RPBnb1

สล็อตออนไลน์ที่ไม่ผ่านเอเย่นต์เป็นที่ยอมรับได้ในยุคปัจจุบัน เนื่องจากการเป็นเอเย่นต์ส่วนใหญ่เป็นเรื่องที่หลายคนไม่สะดวกหรือไม่ต้องการใช้เวลาในการเรียนรู้หรือเตรียมความพร้อมก่อนการเข้าเล่น ด้วยเหตุนี้ ไม่มีตัววิเคราะห์ระบบอัตโนมัติที่ต้องการการใช้งานจากโปรแกรมอินทิเกรตที่ได้พัฒนาขึ้น เช่น GPT-3 ที่เชื่อมต่อกับแพลตฟอร์ม OpenAI ซึ่งเสิร์ฟข้อความผ่าน API โดยไม่ต้องลงทะเบียนหรือเป็นสมาชิก นักเดิมพันสามารถสนทนาได้อย่างอิสระและไม่จำเป็นต้องถูกบังคับให้ลงทะเบียนหรือเป็นสมาชิก

เว็บไซต์ u369369.com ไม่มีระบบที่บังคับให้ลงทะเบียนหรือสร้างบัญชีผู้ใช้งาน ผู้ใช้สามารถใช้งานเว็บไซต์ได้อย่างอิสระและไม่ถูกจำกัดในเรื่องของเวลาและสิทธิ์ในการเข้าถึง นอกจากนี้ยังไม่มีคำบรรยายหรือข้อจำกัดในการเขียนหรือแสดงความคิดเห็น ทำให้ผู้ใช้สามารถเสนอความคิดเห็นหรือแสดงความเห็นเกี่ยวกับเว็บไซต์ได้โดยไม่ได้รับการควบคุม

เว็บไซต์ u369369.com เป็นทางเลือกที่ดีในการเล่นสล็อตออนไลน์ โดยไม่ต้องผ่านเอเย่นต์และไม่ต้องลงทะเบียน ผู้เล่นสามารถเข้าเล่นเกมได้อย่างอิสระและสนุกสนาน อย่าพลาดโอกาสที่ดีในการลุ้นโชคและรับโปรโมชั่นมากมายที่มีให้ เช่น สล็อต เครดิตฟรี 100 ไม่ต้องฝาก เครดิตฟรีกดรับเอง!

คุณสามารถเข้าเว็บไซต์ http://bit.ly/3RPBnb1 เพื่อสมัครสมาชิกและติดต่อเราได้เลย เพื่อรับโปรโมชั่นและสนุกกับการเล่นสล็อตออนไลน์อย่างสบายใจและอิสระ!

0 new messages