Port forwarding on Windows Server 2008 R2

To forward a port on Windows Server 2008 R2 enter the following in command prompt.

For example, if you run a webserver on, but the computer is the router.

netsh interface portproxy add v4tov4 listenport=80 listenaddress= connectport=80 connectaddress=

listenport= portnumber for the incoming traffic/listen
listenaddress= the local ip of the computer which listens/public
connectport= portnumber to connect to/service
connectaddress= computer that runs the service