-
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
Localhost is not accessible from windows in mirrored mode #11172
Comments
The same. From today. Yesterday was everything ok. |
Same here. It happened some time this week I think. Switching to NAT mode fixes it, but that also makes the outbound internet connection is too unstable for me to use (it usually drops within a minute). Here's some things I found in similar networking issues that had no effect:
|
The best workaround I've found for web dev is to run a browser inside wsl2 instead. |
@simon-weber Thanks for the NAT solution. I've been working on this for days trying to figure out why it suddenly stopped working. I have a git push on the 24th. On the 27th, Windows updated to version 23H2. Edit: I have another Windows 11 computer that is working. I performed all the current Window updates and WSL is still working correctly. Meaning, WSL is mirrored and I can reach domain names. So it's not the update. I took a look at the differences between the two and it appears the non-working is coming up short when creating the network connections. Not sure why or how to fix it. WSL Mirrored Working: https://gist.github.com/rbruhn/348eaadddedf415472ab6aaf0823a572 |
I exported my working version of ubuntu 20.04 and moved it over to the other computer. Removed the one that wasn't working, then imported. I got everything up and working. Then, I performed "apt update && apt upgrade" The upgrade broke it again. So, something in the upgrading of Ubuntu is breaking WSL. |
I'm not sure if I'm using mirrored mode but I have nothing in my I'd love for Edit: Even Another Edit: Even my ip didn't work. I gues my error was due to this which I feel is unrelated but idk. Please make this simple. Its annoying to use Windows because of these random issues. |
True. I did an apt upgrade before. |
I filter out updates history not related to Ubuntu. The list of packages that may cause the issue:
UPD. Downgrade all these packages but didn't achieve nothing.
|
@Slamik These are the packages that show in mine before upgrade. When I have time, I might go through them one by one.
|
Any progress here? |
I gave up. As much as I tried to pinpoint which one, I never could. For now, I'm simply using NAT mode. |
The same :) |
Just recently access from Windows to a WSL service stopped working when using |
A possible solution for me is #11600 (comment), turning on the mobile hotspot of Windows makes localhost services on Windows accessible for WSL. |
in case accessing from Windows, does doing the following make any difference?
|
Hi. Can you please collect networking logs by following the instructions below? |
Windows Version
10.0.22631.3155
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Debian 11
Other Software
No response
Repro Steps
Run a Flask app in WSL and want to view it via Windows chrome.
10.12.13.129
is the IP addr of both Windows and WSL thanks to newest WSL 2.0 updateMy .wslconfig:
ifconfig
in WSL:ifconfig -all
in Windows:I've tried to disable Windows firewall but still cannot access to localhost
Expected Behavior
curl http://localhost:8000
is accessiblecurl http://10.12.13.129:8000
is accessibleActual Behavior
In Windows:
curl http://localhost:8000
is not accessiblecurl http://10.12.13.129:8000
is accessibleIn WSL:
curl http://localhost:8000
is accessiblecurl http://10.12.13.129:8000
is accessibleDiagnostic Logs
No response
The text was updated successfully, but these errors were encountered: