0

I'm attempting to set up a http.server using python (3.85) on a windows 7 PC. Using These instructions I paste python -m http.server 8000 at the command line of my desired directory in a terminal window. It displays:

C:\Server>python -m http.server 8000
Serving HTTP on :: port 8080 (http://[::]:8080/) ...

It does this indefinitely. I tried a couple of other port numbers. I obtained the version using the python --version command so it appears to be set up correctly. Should there be something displayed between the double colons?

2
  • 2
    Typically a HTTP server does not quit as this would also end the server. Have you tried if the server can be accessed on the shown port? For the colons see here: serverfault.com/q/444554/68215 – Robert Jun 10 at 16:47
  • Ah, I see. I was expecting it to configure & then return me to the command prompt. It would be helpful if python displayed a notice such as '...server now operational'. My web pages are now displaying as expected. Thanks. Feel free to convert to an answer, but unfortunately I don't have enough 'reps' to 'up' you. – DaveF Jun 10 at 17:14
0

Should there be something displayed between the double colons?

No. :: is simply IPv6 shorthand for an unspecified address (all zeroes) and is the equivalent of 0.0.0.0 in IPv4.

It does this indefinitely.

This means the web server is running. http.server keeps the command prompt open so it can output basic messages regarding server operation to the console.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.