-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL2 http.Server not accessible from Windows11 [experimental] networkingMode=mirrored #10785
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
You can give me feedback by thumbs upping or thumbs downing this comment. |
Hi, you run it in Windows Insiders canary and Release Preview Channel? |
Does it require an insider channel build now that we have 23H2 in stable? On my computer with the latest stable Windows, all WSL 2 2.0.x features (including |
my .wslconfig:
another machine(my phone) can visit wsl2 http.server while win11 can not call wsl2 http.server(by ip). |
Hi @zhaoqiu-china yes I m running with |
Hi @tusharsnx , What do you mean by it works? I perhaps wrong with my test but I hope to use the my interface as described on top. But not sure about that. I created my interface on windows side. I m running a http.server on wsl2 side on this interface and I tried to get from windows. Can you execute this case? |
By that, I mean all new WSL 2 2.0.9 features work outside of insider channels (i.e., 23H2) already. You don't need to be on an Insider build to use these features. (I was replying to zhaoqiu-china) As far as this issue is concerned, I'm not able to access WSL services from Windows side using the IP address. However, |
I added all options:
Starting my http.server in wsl2 with |
the tips included in #10769 fixed my issue, thanks:
|
Windows Version
Windows11
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
After creating a new vswitch with an IP address:
I can see the result in Windows side:
In WSL2:
If I run an http.server on localhost in WSL2 side , I can make a wget in windows.
When I m starting my http.server on 192.168.98.45:8000, I m able to make:
But not in Windows Side
Expected Behavior
I m expecting to acces the http.Server running on the vswitch internal address by sharing the same interface between Windows and WSL2 through mirror feature.
I tried both features, describe in #10769
tried toggling the new experimental.firewall/wsl2.firewall, but it doesn't seem to make any difference.
and
Actual Behavior
For now, I got an error:
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: