-
Notifications
You must be signed in to change notification settings - Fork 830
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
[BUG] WSL2 loses internet connection when Mobile Hotspt is turned on #10146
Comments
Same issue from Windows 11 / Wsl2. Have you solved it? |
@jeremydierx |
New! Connection sharing with WSL does not work with my iphone 12 mini but works with my Huawei 30 pro. So the problem is related to the iPhone and I think it comes from the latest update from Apple... |
This sounds like 2 different configurations: one is enabling Hotspot so other devices can connect through this host device running WSL; the other scenario is having the host device connect through another phone as its network connection. Is that right? In both cases, can you please share the host ip connectivity state? "Get-NetIPInterface", "Get-NetRoute" ? |
@ZikaZaki I have the same problem, have you solve it ? |
This reproes with WSL2 on Windows 11 tethered to an iPhone 15 Pro Max. Windows has full connectivity to internet:
Ubuntu in WSL2 cannot connect:
|
Restarting WSL2 does not help.
Also, in Control Panel: |
Hi there. we'll need a trace to see what's going on. Can you please run this - then startup the WSL container (while traces are running)? Here's the link to our script: https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1 Can you also run "netsh nlm query all nlmquery.log" - and attach that log file with the above traces? Thanks |
For me steps to reproduce are a bit more complicated:
Here
Workaround
FYI @keith-horton |
Experincing same issue
How can I help? |
hi, if you are experiencing the issue can you please collect networking logs using the instructions here. The script will generate a zip with name starting with "WslNetworkingLogs" thanks |
I have the same problem recently. It's like another problem I had occurred before, which is network broken when VPN is on. And it turns out that the same solution for VPN also works for this Mobile WiFi Hotspot issue: https://github.com/sakai135/wsl-vpnkit |
I can confirm that the wsl-vpnkit is working for me. I made logs according to description and emailed a download link to [email protected], since I felt uncomfortable sharing it here.
|
Windows Version
Microsoft Windows 11 [Version 21H2] [OS Build 22000.1936)
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu 20.04
Other Software
Visual Studio Code 1.77.2 with Remote WSL-Extension 0.77.0
Repro Steps
Expected Behavior
The WSL2 should maintain its internet connection when the Mobile Hotspot is turned on in the Windows 11 machine.
Actual Behavior
When a user turns on Mobile Hotspot on their Windows 11 machine, the WSL2 loses internet connection and is unable to connect to any external network resources. The WSL2 network adapter appears to be disconnected and cannot be reconnected until the Mobile Hotspot is turned off.
❗ NOTE: This bug only affects WSL2 and NOT the Windows host machine.
Example: Running the
sudo apt update && sudo apt upgrade
command will fail to update the packages and report errors, as shown below in the screenshots.Screenshots
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: