First, let’s address the “why”:

Why would you want to add extra listening ports for Remote Desktop in Windows?

My reason for figuring this out and sharing it with you all, is that I have more than one system that’s behind a router that uses NAT (Network Address Translation), and I wanted to be able to access these computers remotely over the internet. So, I changed the RDP port for each of them to something unique, then forwarded the ports using the portforwarding feature in the router.

Bam! Access granted.

However, on the LAN (internal network) the default RDP port (3389) wouldn’t work anymore, since I changed the port for each computer. Which is kind of a bummer. So, I went ahead changed it back to port 3389 on all the systems, then added the new unique RDP ports as extra ports on each system, respectively.

Are you using extra RDP ports for something else? Please share in the comments section below!

Others may want to add extra RDP ports to get RDP access to virtual machines both from the outside as well as internally in the virtual network on the default port.

Now, let’s get to it:

Click Start and search for Registry Editor (regedit.exe), then click to open it. (Alternatively you can just press the Windows-key + R and type “regedit” then hit Enter.)

Navigate to the following key (folder):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Find PortNumber in the list. Right-click it and select Modify.

Extra RDP port - New Port NumberTo spare you from having to do a conversion from decimal to hex for the extra port, we will temporarily change this value to the extra port number you want to use.

Change the Base option from the default of Hexadecimal to the much more readble Decimal format (unless you are a “Hexpert” of course).

Change the value to your new extra port number, for example 3390 then click OK.

Right-click the RDP-TCP key (folder) and click Export.

Extra RDP port - Export KeySave the file as anything, anywhere you will easily find it again – the desktop for example:

Extra RDP port - Save Exported KeyNow that we have a copy of the whole RDP-TCP key with our new extra port number in it, change the original PortNumber value back to the default 3389 again.

Extra RDP port - Reset Port NumberNow, all we need to do is change the key name in the exported file, so we can import it as a copy, and not just overwrite the original values.

Locate the registry file you just exported, and right-click it. Select “Open with” and choose “Notepad“.

Now change the final part of the third line to something different from “RDP-Tcp“. For example “RDP-Tcp-Extra“:

Extra RDP port - Change Key 1Do the same for the two keys in the bottom of the file as well (if they exist in your version):

Extra RDP port - Change Key 2Now save the file, then double-click it to import the new key to the registry. Click “Yes” when the “Are you sure?” security prompt appears.

IT Crowd stress test regedit are you sureYou should see a success dialog like below (unless you’re without admin rights, but then you shouldn’t even have made it this far):

Extra RDP port - ConfirmationRefresh registry editor (press the F5 key) to see that the new key was imported, and voilà; your new extra port is active!

Extra RDP port - Regedit RefreshBy the way, to connect to a computer using a non-standard port (any other port than 3389) using RDP, you need to specify the port number, prefixed by a colon, after the computer name:

Extra RDP port - RDP login specify port