Last active
May 20, 2026 13:59
-
-
Save danielmorgan/0c2b9f3b8fe0da6b5b05bab2a48dbe0b to your computer and use it in GitHub Desktop.
Powershell (admin) to forward WSL2 ports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| netsh interface portproxy add v4tov4 listenport=8081 listenaddress=0.0.0.0 connectport=8081 connectaddress="$((wsl hostname -I).Trim())" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment