Scroll down on the right until you see the PortNumber value, and then double-click it to modify.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
Press the Windows + R keys to open the Run command box.How to Change RDP Port for Windows Remote Desktop Connection? The following method works with Windows 10, 8, 7 and Windows Server. Since this port is well known and it could pose a security risk, you’d better change remote desktop RDP port for your Windows computer as an added security measure. By default, Windows uses TCP/IP port 3389 for remote desktop connection.