【问题标题】:Python HTTP Server not working when connecting to 0.0.0.0连接到 0.0.0.0 时 Python HTTP 服务器不工作
【发布时间】:2019-04-22 09:49:32
【问题描述】:

当我跑步时:

python -m http.server

我看到消息Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

当我在浏览器中导航到那里时,我看到“无法访问此站点”。

我正在使用:

  • Windows 10
  • Python 3.6
  • unix 风格的控制台模拟器 cmder(基于 ConEmu 构建)。

关于问题可能是什么的任何想法?我试过指定不同的端口,但没有任何变化。

【问题讨论】:

  • go to http://127.0.0.1:8000 ... 0.0.0.0 表示任何可用的接口...它并不表示文字 ip 0.0.0.0

标签: python python-3.x server localhost


【解决方案1】:

转到http://127.0.0.1:8000 ... 0.0.0.0 表示任何可用的接口... 它并不表示文字ip 0.0.0.0

【讨论】:

    猜你喜欢
    • 2017-09-18
    • 1970-01-01
    • 1970-01-01
    • 2019-05-22
    • 2015-05-09
    • 2014-09-22
    • 1970-01-01
    • 1970-01-01
    • 2014-09-15
    相关资源
    最近更新 更多