Skip to content

Instantly share code, notes, and snippets.

@ajsb85
Created December 31, 2020 17:32
Show Gist options
  • Save ajsb85/90af9910d4d9ff7be54787809ced077b to your computer and use it in GitHub Desktop.
Save ajsb85/90af9910d4d9ff7be54787809ced077b to your computer and use it in GitHub Desktop.
Connecting to WSL2 server via local network
netsh interface portproxy add v4tov4 listenport=<port-to-listen> listenaddress=0.0.0.0 connectport=<port-to-forward> connectaddress=<forward-to-this-IP-address>
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.24.98.194
netsh interface portproxy add v4tov4 listenport=3001 listenaddress=0.0.0.0 connectport=3001 connectaddress=172.24.98.194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment