Port Forwarding using the Windows Firewall

Port forwarding in Windows

The other day I was looking for an easy way to setup port forwarding on my Windows Server 2008 development server.

Firewall image

I came across the built-in “netsh interface portproxy” Windows command which allows you to do this without the need to install any additional software.

So how do I do it?

netsh interface portproxy add v4tov4 listenport=<LOCAL PORT> connectport=<REMOTE PORT> connectaddress=<REMOTE ADDRESS>

Command window image

More information available here
http://technet.microsoft.com/en-us/library/cc731068(v=ws.10).aspx

Shane Bartholomeusz

G’day, I’m a technical solutions consultant based in Perth, Australia that specialises in the Microsoft technology stack, including .NET, Dynamics 365, Azure and general web development etc.

This blog is my place to share my thoughts, helpful solutions and just random nerdy stuff.
Shane Bartholomeusz

Latest posts by Shane Bartholomeusz (see all)

Leave a Reply