-
Notifications
You must be signed in to change notification settings - Fork 302
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: connection issues on localhost #2037
Comments
I'm not able to reproduce on Windows 19041.1 (Build 19041.vb_release.191206-1406) Can you paste what's in the WSL Log (Use |
|
If I open a project without WSL the bash terminal works as expected. I checked the permissions for the |
Thanks @Kangaroux Then open a WSL window again and copy the WSL log. What do you mean by |
When I say a project without using WSL I mean using this:
|
I have the exact same issue. But i'm not sure the issue is related to the Windows update for me. It has happened now and then for a while. A reboot solves the issue. OS Version: 19041.1 Running Ubuntu-18.04 WSL 2 |
Can confirm a reboot fixed it for me as well. |
Hi, A curl from powershell fail:
But a curl from ubuntu is ok:
Version: |
I have this problem too, and I wonder if it is related to #103 I am also trying to track down an issue where sometimes when I start a node program in bash (wsl 2), localhost is accessible from my browser in Windows, and sometimes it's not. It seems like if I reboot, if I first start my program, I am able to connect to localhost from my browser, but then running However, if I reboot and first run Here are other possibly related issues: |
Node has been a bit flaky for me as well, whether I'm running it directly or through Docker. Most of the time it's fine, though sometimes I can only access it via |
I can confirm a reboot fixed it for me, too. |
Exactly what is happening to me, what I open first, runs, after that, I only get connection refused. |
It's probably related to: The 'only one port works' makes sense as all of us manage to get it working after a reboot and if we start vscode first after reboot. Is it possible for the VSCode server to use IP instead of localhost? Looks like we could use that as a work around for now. |
I'll add an option to use the ip address as a workaround. |
+1 |
for interim, wsl --shutdown solve my problem. |
I just released a new version of the extension - Remote - WSL 0.42.1 - that should work around the issue by connecting to the WSL2 VM IP. It requires VSCode Insiders (1.42.0). It would be great if you can give it a try. If it works I can also make a version for the stable VSCode (1.41.1). |
Using VS Code with WSL2 verz frequently and have not seen the issue. Marking as verified, |
VSCode Insiders version of the extension seems to work fine, although I had a connection issue attempting to open a remote folder. |
Does this issue occur when all extensions are disabled?: Yes
After upgrading my windows insider build last night vscode is giving ECONNREFUSED errors.
I'm unable to manage any of my extensions. Under the recommended extensions tab it says "We cannot connect to the Extensions Marketplace at this time, please try again later."
Additionally, the Terminal window is stuck on "Starting...". I can't open any projects in WSL, and opening projects as non-WSL still gives extension errors. Opening a WSL project gives "Could not fetch remote environment."
The text was updated successfully, but these errors were encountered: