-
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
Can't connect to github.com with WSL2 #6827
Comments
Are you using a VPN? Could you please attach logs for this issue? Instructions here |
Here is the log link: https://aka.ms/AAc0gg0 |
This is likely variation #5313. That one was framed in terms of 'tethering' (and the discussion wandered to "SonicWall" besides), which might not be (probably isn't) your specific use case. The problem manifests when the route to the Internet on the host changes, typically when going on (and maybe off) wifi, because ethernet+wifi are the two common routes out of the host. |
Woah, so I had no idea the mobile hotspot function (not sure if that's what's being meant by "tethering" but it's what it sounded like to me) could be causing it... so I think it affects the "adapter" whose connection is being shared, after fiddling with the settings a bit. Now I'm wondering why this could be happening, tho, because it doesn't block all sites, and "the route to the Internet on the host changes" doesn't sound like being the case for me... |
If your hotspot is connected to your box with a usb cord it is sometimes called "tethering". If you are using your Windows box's wifi adaptor (ie "no cord") then sometimes that's called a "mobile hotspot". [To the extent any of these terms have definitions.] Either way there is no route (from WSL2) to (in your case) |
Huh, that sounds weird, because with the (built-in) tethering on (I have a tp-link high gain wifi USB adaptor with its own driver) I can still ping |
WSL2 does not know one address from another. |
That's what I thought too. Also, google.com just changed its IP address to Oh, by the way, thanks for taking your time for my issue! |
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! |
Windows Build Number
Microsoft Windows [Version 10.0.19042.928]
WSL Version
Kernel Version
5.4.72
Distro Version
Ubuntu 20.04
Other Software
Visual Studio Code 1.55.2 with Remote-WSL Extension 0.54.6
Repro Steps
Either in WSL directly or through VSCode, try
ping github.com
,git push
orgit pull
(the last two in a repo, obviously).Expected Behavior
A response from GitHub.
Actual Behavior
PC-NAME
isn't the actual name of my PC. Also, this only happens with GitHub as far as I can see, other sites work normally, and it's only my ethernet connection that is affected.Diagnostic Logs
https://aka.ms/AAc0gg0
The text was updated successfully, but these errors were encountered: