LMSouq
server-admin Open

Access a web server which is running on WSL (Windows Subsystem for Linux) from the local network

RO
Roman
1 month ago
3 views
Problem Description
After installing [Ubuntu][1] as [WSL][2] (Windows Subsystem for Linux), I've run (as root): ```lang-none cd ~ python3 -m http.server ``` Output: ```lang-none Serving HTTP on 0.0.0.0 port 8000 ... ``` And I tried to access to this web server from my windows machine, `http://0.0.0.0:8000` or `http://192.168.1.178:8000`, but without any success. The web server is available only by the address `http://127.0.0.1:8000` or `http://localhost:8000`. It means that I can't connect to this web server from another PC in my network. Is it possible to get access to WSL from the outside? [1]: https://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29 [2]: https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base