Windows Server remote desktop 3389
How to change port remote desktop on Windows Server 2019 | 2016 | 2012 | 7 | 8 | 10

When you connect to a computer (either a Windows client or Windows Server) through the Remote Desktop client, the Remote Desktop feature on your computer "hears" the connection request through a defined listening port (3389 by default). You can change that listening port on Windows computers by modifying the registry. Start the registry editor. (Type regedit in the Search box.)

Navigate to the following registry

subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber
Click Edit and choose Modify, and then click Decimal. Type the new port number, and then click OK.
Close the registry editor, and restart your computer.
The next time you connect to this computer by using the Remote Desktop connection,

you must type the new port