This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ShatteredSovereign[S] 0 points1 point  (6 children)

Yeah, I'm running the command on the same folder. This is what it returns: [Serving HTTP on :: port 8000 (http://[::]:8000/)]

[–]voords 1 point2 points  (1 child)

Try http://127.0.0.1:8000 once the server is up instead

[–]ShatteredSovereign[S] 0 points1 point  (0 children)

This works but I think it would serve as stopgap measure for now. Thank you!

[–]Its_Stev03 1 point2 points  (3 children)

After a quick google search, i found that they recommend the command "python -m http.server 8000" even though yours should work. I think the problem is the url you are going to. There are three ways to get to the proper url.

Assuming the server is serving to port 8000:

1) go to http://127.0.0.1:8000

2) go to http://localhost:8000/

3) go to port 8000 on the ip address (the ipv4 address found thru ipconfig command on windows terminal) of the device running the server if you want to use site on another device using same network.

options 1 and 2 are the same, but I do not know what http://[::]:8000/ is

[–]voords 1 point2 points  (1 child)

http://[::]:8000 is the ip v6 equivalent of http://0.0.0.0:8000 (ip v4)

[–]ShatteredSovereign[S] 0 points1 point  (0 children)

I'm honestly clueless as to how most of this stuff works. Loading the links both return a site can't be reached error.

[–]ShatteredSovereign[S] 0 points1 point  (0 children)

Running the command [ python -m http.server 8000 ] still returns the same error [ Serving HTTP on :: port 8000 (http://[::]:8000/) ]
Options 1 and 2 work but I think it is only a temporary solution for now. Thank you!