Skip to content

Instantly share code, notes, and snippets.

@linxlunx
Created August 2, 2020 13:20
Show Gist options
  • Save linxlunx/cee0194f98b9deb26c23f75a5a81363f to your computer and use it in GitHub Desktop.
Save linxlunx/cee0194f98b9deb26c23f75a5a81363f to your computer and use it in GitHub Desktop.
# forward from windows to wsl
netsh interface portproxy add v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=127.0.0.1
# remove forwarding
netsh interface portproxy delete v4tov4 listenport=8000 listenaddress=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment