-
Notifications
You must be signed in to change notification settings - Fork 846
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
ping works in wsl2 ubuntu, but wget, apt doesn't. DNS does work. #9550
Comments
traceroute msn.com works , wget http://msn.com just hangs. so what can effect web access but not traceroute ? |
I have a problem that seems similar to this. Connectivity starts out fine but after a while things like apt, curl, get stop working, just hang. Problem is cleared for a while by shutting down WSL, logging out and back into Windows, then relaunching WSL. I do not know what triggers the internet connectivity to stop working. Like OP, I see name resolution and pings working. |
Iam facing the same problem.Connectivity starts out fine but after a while things like apt, curl, get stop working. |
Same here. Pings works but all conections to any repo were dead. |
Same here as well. ping, traceroute work just fine but wget, curl, apt don't. |
Could you please follow the steps below and attach the diagnostic logs? https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues |
Doing these solved my problem: Select your pc, open Virtual Switch Manager Select WSL Set to external network Select the network card the traffic runs through Then login to wsl2 terminal and configure an IP address. E.g.
This is where i found it: https://stackoverflow.com/a/62438375/10853017 |
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
10.0.22621.1194
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubunto 22.04
Other Software
No response
Repro Steps
wget https://www.microsoft.com
no response, but does translate to ip address
Expected Behavior
a result
Actual Behavior
hang
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: