- On Host: chrome.exe --remote-debugging-port=9222 --user-data-dir="D:\ChromeDevData"
- On Host: Add firewall rule to allow 9222 access
- On Host: Get WSL Hyper-V firewall IP(ipconfig, should be like 172.xx.xx.1)
- On Host: netsh interface portproxy add v4tov4 listenport=9222 listenaddress=127.0.0.1 connectport=9222 connectaddress=172.xx.xx.1
- In WSL2: nc -vz 172.xx.xx.1 9222 (should be success)
Created
October 1, 2025 11:20
-
-
Save Vesnica/ed5d1acc0e56f67c97413d62f1031c54 to your computer and use it in GitHub Desktop.
Access host port from WSL2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment