-
Notifications
You must be signed in to change notification settings - Fork 840
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
Mirrored network, port listen in Windows not accessable from WSL using external LAN ip. #10611
Comments
For ssh access you can create a port forward on the Windows host like this: Open an Administrator CMD prompt
Then you can connect to windows_host_ip:22 and access the WSL 2 instance. |
Hi @fanthos this is by design. Does this block a certain scenario or workflow for you?? (This scenario isn't supported in NAT either). If it does, could you open a feature request for us? I'd love to know more about the scenario on why you need this. Thank you! |
I meet the same question, here is why I need to access WSL2 listened port by IP on host machine: I run a web service on my WSL2 for coworkers in the same office, and I need to use it also, when I told others to "access 192.168.1.4:8000 to use it", but I need to access |
Windows Version
22621.2361ws
WSL Version
2.0.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-1
Distro Version
No response
Other Software
No response
Repro Steps
Set network type to
mirrored
in.wslconfig
.Listen a port in Windows.
Access the port from WSL2 using external LAN IP on ethernet adapter.
Expected Behavior
The port should accessable.
Actual Behavior
The port is not accessable.
Access port using
127.0.0.1
works, but not on lan IP.Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: