Skip to content

Instantly share code, notes, and snippets.

@haggen
Created July 9, 2022 00:12
Show Gist options
  • Save haggen/b19d15d1218d057f8eb61d05409ba116 to your computer and use it in GitHub Desktop.
Save haggen/b19d15d1218d057f8eb61d05409ba116 to your computer and use it in GitHub Desktop.
Forward connection via PowerShell.
param($addr, $port)
netsh interface portproxy delete v4tov4 $port
netsh interface portproxy add v4tov4 listenport=$port listenaddress=0.0.0.0 connectport=$port connectaddress=$addr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment