Skip to content

Instantly share code, notes, and snippets.

@danielmorgan
Last active May 20, 2026 13:59
Show Gist options
  • Select an option

  • Save danielmorgan/0c2b9f3b8fe0da6b5b05bab2a48dbe0b to your computer and use it in GitHub Desktop.

Select an option

Save danielmorgan/0c2b9f3b8fe0da6b5b05bab2a48dbe0b to your computer and use it in GitHub Desktop.
Powershell (admin) to forward WSL2 ports
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