Created
July 9, 2022 00:12
-
-
Save haggen/b19d15d1218d057f8eb61d05409ba116 to your computer and use it in GitHub Desktop.
Forward connection via PowerShell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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