Skip to content

Instantly share code, notes, and snippets.

@aminusia
Last active October 29, 2022 15:35
Show Gist options
  • Save aminusia/c3c5ace02bf969774767b41d7b2c3619 to your computer and use it in GitHub Desktop.
Save aminusia/c3c5ace02bf969774767b41d7b2c3619 to your computer and use it in GitHub Desktop.
Forward port listening to WSL2
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.25.19.178
# to remove
netsh interface portproxy delete v4tov4 listenport=3000 listenaddress=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment