-
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
Remote device unreachable in WSL2 when internet connection sharing is enabled #8428
Comments
Seems like ICS is required for WSL2 to function as mentioned in #6646 but it really should not cut off internet access in it when ICS is being used for another network adapter |
This issue alone has been keeping me on WSL1 and unable to upgrade. I have a few devices that rely on ICS on my PC for VPN connectivity. Using WSL2 causes those devices to not be able to connect. On the other hand WSL1 is also starting to have a lot of issues (e.g Is there a workaround that can be used to allow ICS to be used while also using WSL2? Edit: Turns out I misremembered what the issue is. The problem is that network connectivity will seemingly randomly use one of my other network adapters for outbound traffic. Sometimes it picks the VPN adapter, other times it picks my physical adapter. Meaning I sometimes can access the internet. sometimes not. Sometimes I can access the internal network, sometimes not. But if anyone else bumps into this and have the same issue, I bumped into wsl-vpnkit which seems to have just magically fixed my connectivity issues. While still using internet connection sharing for my other devices. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.19042.1466]
WSL Version
WSL2
Kernel Version
Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220)
Distro Version
Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy
Other Software
No response
Repro Steps
wsl ping 192.168.137.150
wsl ping 192.168.137.150
again (will fail due to "Hyper-V Virtual Ethernet Adapter" being on wrong network)ping 192.168.137.150
which will workwsl ping 192.168.137.150
again (will still fail even though on correct network as seen below)I've tried a bunch of things like port forwarding with
netsh
as seen at#4150 (comment)
and
https://lifesaver.codes/answer/static-ip-on-wsl-2-418
as well as using
https://github.com/wikiped/WSL-IpHandler
to set the IP of wsl instances statically but the remote device becomes unreachable the moment ICS is enabled
Update
Internet connection in WSL2 is completely lost once ICS is enabled
I'm guessing network routing gets broken by ICS and manual setup is required but I have not been able to figure out how to do it yet (simple port forwarding with
netsh
does not seem to work)Expected Behavior
Should be able to reach remote device when on same network regardless of whether ICS is enabled or not
Update
Internet access within WSL2 should be preserved regardless of whether ICS is enabled or not
Actual Behavior
Unable to reach remote device from within WSL2 but no problems whatsoever from Windows itself
Update
Internet access is lost within WSL2 when ICS is enabled
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: