Replies: 1 comment
-
|
In mirrored mode you should be able to hit your Windows service from WSL on 1) Update WSL + restart cleanThen reopen your distro and try again. 2) Minimal config to testTemporarily simplify your %UserProfile%\.wslconfig (you can add the hardening back after you confirm stability): After saving, do and start WSL again. If it now stays stable, re-enable 3) Make sure IPv6 is ONMirrored mode relies on IPv6 being available on Windows. In Network Adapter Properties, ensure Internet Protocol Version 6 (TCP/IPv6) is checked for:
Disabling IPv6 is a common cause of “works, then dies”. 4) VPN / TAP adaptersIf you’re on a corporate VPN, especially TAP-based, mirrored networking can drop or route oddly. Quick test:
5) Windows service actually listening?Confirm your Windows app is really bound and reachable on localhost (and not only on IPv6 or a different interface): From WSL: 6) If it “drops” after sleep / network switchA quick repair often helps: Reopen WSL and retry. If this fixes it consistently, something is reconfiguring networking on resume (drivers, VPN, or firewall policy). 7) If
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is my .wslconfig content:
[wsl2]
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=false
[experimental]
hostAddressLoopback=true
Please let me know what to do
I am trying to access localhost that is running on Windows 11 from WSL2
Beta Was this translation helpful? Give feedback.
All reactions