Wednesday, September 3, 2014

How to Forward Port to another IP/Machine on Windows

Let say you want to forward listened port 4422 (at you current machine with IP 192.168.1.111) to port 80 on a machine with IP address 192.168.0.33, here is the command:

netsh interface portproxy add v4tov4 listenport=4422 listenaddress=192.168.1.111 connectport=80 connectaddress=192.168.0.33

If you want to list all the port forwarding setting on your machine:

netsh interface portproxy show all

I think by now you could already figured out how to delete the port forwarding!

Take note that this setting will be saved even after you restart the machine. If you want to disable the port forwarding, you need to delete it.

Happy Forwarding!

:: aerobraintech ::

No comments:

Post a Comment