-
Notifications
You must be signed in to change notification settings - Fork 823
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
Networking mirrored can't access to windows by 127.0.0.1:port with WSL2 #11312
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Afte view this issue (#10632), I have checked the port binding in wsl: Can wsl use the port same with windows?
Can windows access web started by wsl?When I use edge in windows, I can access the web by |
What do you get from |
Similar issue. |
This method does not work for me. |
Did not work for me too. |
If you want to connect to the host from the WSL container by the IP address assigned you'll need to connect to 127.0.01. If you want to connect to the assigned address, you need to set [experimental] hostAddressLoopback=true (see https://learn.microsoft.com/en-us/windows/wsl/wsl-config#experimental-configuration-settings). But in the original repro, it was sent to 127.0.0.1, so that's valid. 15:44:12.145100 IP 127.0.0.1.60816 > 127.0.0.1.7890: Flags [S], seq 2455237139, win 65495, options [mss 65495,sackOK,TS val 260823200 ecr 0,nop,wscale 7], length 0 Everything else looks setup correctly (Hyper-V Firewall is setup correctly).
|
I have uninstalled the VMWare just now and reboot the computer, but it still not work. I think the app was bound the port at the time, because I can not access google without this proxy (google was blocked in my country). And now I can access google(port is work in host), but |
But I used mirrored mode and no VMWare. |
I did not changed anything and a couple of weeks ago all worked well. |
Try executing the command
followed by running wsl.exe --shutdown in PowerShell, and then restart WSL again. |
I tried disabling every service until I reached network-manager.service, and finally, the mirrored functionality started working properly. It took me a significant amount of time to figure this out. |
solved. Answer: |
Similar issue. It works for me. Thanks so much! |
Solved my problem, thanks |
Failed to disable unit: Unit file network-manager.service does not exist.😢 |
The NetworkManager service has been named NetworkManager. You can see https://askubuntu.com/questions/1371275/where-has-the-network-manager-service-in-21-10-gone for details. |
Unlucky😢😢, it also show: |
same issue here |
Windows Version
Microsoft Windows [版本 10.0.22631.3296]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-microsoft-standard-WSL2
Distro Version
ubuntu 20.04
Other Software
Docker desktop was uninstalled from the windows system.
Repro Steps
Information
My laptop's IP is
192.168.0.102
in WLAN.Is was worked for me before. But after I reset my system, I can not make it work again.
7890
telnet 127.0.0.1 7890
First
.wslconfig
commands and result
detail
Second
.wslconfig
commands and result
detail
Expected Behavior
The command
telnet 127.0.0.1 7890
can success.Actual Behavior
The command
telnet 127.0.0.1 7890
is failed.Diagnostic Logs
Log
Collected log
Steps:
wsl --shutdown
.\collect-networking-logs.ps1
wsl
curl 127.0.0.1:7890
telnet 127.0.0.1 7890
telnet 192.168.0.102 7890
WslNetworkingLogs-2024-03-16_15-43-33.zip
Other
The text was updated successfully, but these errors were encountered: