I'm pretty shocked Windows comes with built-in quiet powerful command line tools for port forwarding. The name is netsh
. Let say we want to redirect all incoming traffic to IP 1.2.3.4 port 80 to IP 1.2.3.4 port 8080.
prompt> netsh interface portproxy add v4tov4 listenport=80 listenaddress=1.2.3.4 connectport=8080 connectaddress=1.2.3.4