【发布时间】:2018-09-24 21:49:19
【问题描述】:
在将 Ubuntu 安装为 WSL(Linux 的 Windows 子系统)后,我运行了:
root@teclast:~# python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...
并尝试从我的 Windows 机器 http://0.0.0.0:8000 或 http://192.168.1.178:8000 访问此 Web 服务器,但没有成功,Web 服务器只能通过地址 http://127.0.0.1:8000 或 http://localhost:8000 访问,这意味着我无法连接到此来自我网络中另一台电脑的网络服务器。是否可以从外部访问 WSL?
【问题讨论】:
-
也许this可以帮助你。
-
感谢您的帮助,但服务器仍然只能通过 localhost 访问。并且无法从另一台 PC 连接到此服务器。
标签: linux windows ubuntu webserver windows-subsystem-for-linux