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.

  1. Connect to your server over RDP.
  2. 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"
  3. Search for the following registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  4. 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.
  5. Update the Windows firewall to listen on the port that you chose in the previous step.
  6. Exit the registry editor.
  7. Restart your server.
Once your server comes back online, you will have to RDP by specifying the port number. Example:


  Add Comment

Confirm Submission

Please enter the text from the image in the box provided, this helps us to prevent spam.