Changing the RDP port on a Windows Server
Modifying the registry is risky, serious problems might occur if you modify the registry incorrectly. So be sure that you have a full back up of registry before you modify it.
Start Registry Editor. (Press Windows logo + R and type “regedit” in Run dialog)
Locate the registry subkey for RDP port:
In Registry Editor find this hiv:
On the Edit menu, click Modify and then click Decimal (The default port assignment is represented as D3D in hexadecimal)
Type the new port number and then click OK.
Quite the Registry Editor.
Restart the machine.
The Window Server will now listen on the new port. You may have to change the firewall to allow the new port number before you connect to this computer. You MUST type the new port number, when you try to connect to this computer by using RDP.
For Example: 10.10.10.10:1234 or testserver:1234
This is a quick method to update your Windows firewall:
Control Panel > System Security > Windows Firewall > Advance Settings > Inbound Rules > New Rule > Select Ports > Next > Give your new port number > Allow ALL in case you want to RDP one that port locally or public > Give it a name > Finish.