无法在Windows 10上访问localhost python服务器

时间:2020-09-27 09:28:06

标签: python-3.x linux windows localhost webserver

我使用Linux子系统和cmd尝试了此命令:python3 -m http.server 8080 得到以下答复:Serving HTTP on :: port 8080 (http://[::]:8080/) ...

此后,当我尝试使用google chrome访问服务器时,它说该页面不可用。 在我看来,无法看到默认的0.0.0.0地址,因此无法访问。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

没有这样的地址,请尝试连接到127.0.0.1或localhost,两者的含义相同,即回送,此地址。

您看到的在0.0.0.0上监听的量度,意味着它将接受所有地址。