[Tutor] [Python 2.7] HELP: Serving HTTP on 0.0.0.0 port 80 not proceeding

Alan Gauld alan.gauld at yahoo.co.uk
Mon Feb 27 04:52:49 EST 2017


On 27/02/17 02:44, Allan Tanaka via Tutor wrote:
> I try to access it with http://0.0.0.0:8000/chart.html via Google Chrome, 

> On 18/02/17 04:46, Allan Tanaka via Tutor wrote:
>> Not completely sure why it doesn't open the chart on the web browser 
>> when i type this in the windows command prompt (cmd)
>> python -m SimpleHTTPServer port 80.

First that should give an error... The syntax should be:

python -m SimpleHTTPServer 80

Which should then print a message like:

Serving HTTP on 0.0.0.0 port 80 ...

Second, you are starting the web server using port 80
but you are trying to access it using port 8000. You need
to change the server startup command or change the url
so that they match.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list