Change listening port for Remote Desktop for Window Server

Exabytes uses standard port number 3399 for Windows server rather than default port number 3389. You can change RDP port to another value for security concerns as this will reduce risk of hacking system with automated password guessing.


You can check the current port by running the following PowerShell command:


Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"



You can change that listening port on Windows computers by modifying the registry by referring to steps below.


1. Run the command prompt as an administrator Start Registry Editor by typing “regedit” in the command prompt 


2. Locate and then click the following registry subkey:


 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber 



3. On the Edit menu, click Modify, and then click Decimal. Type the new port number, and then click OK. Quit Registry Editor. 


4. Restart the computer.



Alternatively, you can also change the RDP port by running the following PowerShell command. In this command, we'll specify the new RDP port as 3390. To add a new RDP Port to the registry:


Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value 3390

New-NetFirewallRule -DisplayName 'RDPPORTLatest' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort 3390



The next time you connect to this computer by using the Remote Desktop connection, you must type the new port. 



* Important! If you're using a hardware/software firewall, make sure to configure the firewall to permit connections to the new port number before restarting the server.Otherwise, you may be left without access to remote server. 


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.