Skip to content

Instantly share code, notes, and snippets.

@tian-im
Created July 26, 2017 23:56
Show Gist options
  • Save tian-im/120b015129b9f352c3bc9d0de94f0c86 to your computer and use it in GitHub Desktop.
Save tian-im/120b015129b9f352c3bc9d0de94f0c86 to your computer and use it in GitHub Desktop.
Port forwarding in Windows
# to add
netsh interface portproxy add v4tov4 listenport=3000 listenaddress=127.0.0.1 connectport=3000 connectaddress=10.0.2.2
# to remove
netsh interface portproxy delete v4tov4 listenport=3000 listenaddress=127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment