-
Notifications
You must be signed in to change notification settings - Fork 847
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
Services running in WSL 2 no longer accessible from Windows #9760
Comments
Please use the issue template going forward. Please provide the output of |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
Got a similar problem. |
hi,I had the same problem,can't connect to grpc server written by golang running WSL2, but it fine running windows. |
WslLogs-2023-03-10_13-18-21.zip edit: sorry this doesn't help either, problem still occurs. |
I'm sorry, I've gotten routed elsewhere and won't be able to look into this for the time being. |
@pmartincic |
@sec, I agree with you. Unfortunately I've gotten routed elsewhere. Your logs have something interesting in them, won't be able to look much right now. @Trey9 wsl --shutdown |
@pmartincic I apologize about that, not sure how that happened. But I uploaded the updated logs - Let me know if there is anything else you need |
Had to rollback to 1.0.3 WSL version: 1.1.7.0 ss -lntp (WSL)State Recv-Q Send-Q Local Address:Port Peer Address:Port Process netstat -an | findstr /c:"LISTENING"TCP 0.0.0.0:135 0.0.0.0:0 LISTENING |
Seems to be working for me now, after updating
|
Thanks @Trey96 for the update. The fix was in 1.2.1 |
Hi. |
@pmartincic I have created sample code to repro this issue - https://github.com/sec/wsl-network-crash-test - should I open new issue or can we reopen this one, as it's still the same issue? |
Discussed in #9744
Originally posted by Trey96 March 6, 2023
Not sure if anyone else is having this problem, but I searched and wasn't able to find anything related to my issue. It seems like the WSL localhost is no longer being shared with the Windows localhost, and I cannot access WSL services from Windows via localhost.
I am running multiple domains on Nginx inside of WSL 2. In my Windows hosts file I am pointing all of those domains to 127.0.0.1. Until recently that was working just fine. However it has stopped working completely, and when I try to connect to the domain from the browser (Chrome) I get a connection refused error. Further investigation reveals there are no ports listening on 80 for 127.0.0.1, in fact nothing appears to be active on 127.0.0.1 anymore, especially WSL which used to be active. It seems WSL 2 has stopped binding to localhost but I am not sure why.
I recently installed Docker on my computer which runs on WSL. So I am not sure if that might have caused problems. Though I have since uninstalled Docker, but it had not affect. I am not sure if this is a bug with WSL or something I am doing wrong.
Any help identifying what might be the problem or any pointers on how to resolve it (or troubleshoot further) is much appreciated!
Log Files (Updated 3/21/2023):
WslLogs-2023-03-21_23-12-21.zip
The text was updated successfully, but these errors were encountered: