Change the Remote Desktop Connection port on Windows Server
Windows Server uses the default port TCP 3389 for Remote Desktop Connection (RDP). For security purposes, you can change this port however this is security through obscurity. It's not 100% fool proof and is not recommended.
Important: In order to make sure that you can continue to access your server after you change the RDP port, make sure your firewall is properly configured. VPS customers have KVM console access through the My NodeSpace portal. Bare metal customers can request a IPMI console. NodeSpace support staff will perform this task for free, if requested, on both managed and unmanaged servers. Simply open a support ticket.
- Connect to your server over RDP.
- In the run box (click on the Windows logo +R; in later versions of Windows Server 2012 and up, right click the Start button and click Run), type in "regedit"
- Search for the following registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
- Double click on "PortNumber" key and select decimal base and enter the port number of your choice (Note: Default port is 3389). Click OK to save.
- Update the Windows firewall to listen on the port that you chose in the previous step.
- Exit the registry editor.
- Restart your server.