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):
Find PortNumber in the list. Right-click it and select Modify.
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.
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“: