Change the Remote Desktop Connection port to your Windows Server

Windows servers are remotely accessible with Remote Desktop via the TCP 3389 port (default port). In some situations, as when you wish to obtain a more secure environment, changing the remote access port can be useful. This article explains how to proceed.

Important noteIn order to maintain the access to your server after you change the access port, make sure your firewall is properly configured. To be safe, request a KVMIP or a virtual console if you are making the change for a virtual server.

The instructions below apply to machines under Windows Server 2012, 2008 R2, 2008, and 2003. Follow these steps:

 

  1. Connect to your server via Remote Desktop
  2. Click simultaneously on the Windows logo + R to open the “Run” dialog and execute the “cmd” command
  3. Open the registry editor by typing the “regedit” command
  4.  Search for this registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  5. Double-click or right-click on the “PortNumber” registry subkey, select the decimal base and type the port number of your choice (the default port is 3389, in this example, we selected port 3390). Click on “Ok” to save your selection.
  6. IMPORTANT: Make sure that remote access to your server through the new port is authorized in your Windows firewall before executing the next step.
  7. Exit the registry editor
  8. Restart your server

 After the reboot, specify the Remote Desktop port number. 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Connecting to a Windows server with Remote Desktop (RDP)

this article explains how to use Remote Desktop to access your Windows server’s desktop remotely....

Authorizing an IP Address in Windows Firewall

n some situations, you will need to temporarily or permanently change remote access to your...

Windows Server 2012 – How to Reboot Your Server

Since the Start menu is not visible in Windows Server 2012 as it was in previous versions (2003,...

Powered by WHMCompleteSolution