KB: Windows TCP Port Forwarding with netsh.exe

Example:

  • Listening on TCP port 33890 and forward the traffic to TCP port 3389 at a remote IPv4 address

netsh interface portproxy add v4tov4 listenport 33890 connectaddress [remote_server_ip] connectport 3389

Advertisements