Exabytes utilizes the standard port number 3399 for Windows servers instead of the default port number 3389. For security purposes, you can modify the RDP port to a different value, as this can decrease the risk of your system being compromised through automated password attempts.
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"
To change the listening port on Windows computers, you can modify the registry by following the steps outlined below.
1. Open the command prompt as an administrator and launch the Registry Editor by typing “regedit” in the command prompt.
2. Find and then click on the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber
3. From the Edit menu, select Modify, then choose Decimal. Enter the new port number and click OK. Exit the Registry Editor.
4. Restart your computer.
Alternatively, you can modify the RDP port by executing the following PowerShell command. In this command, we will set the new RDP port to 3390. To include a new RDP Port in 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 using Remote Desktop, you'll need to enter the new port.
* Important! If you are utilizing a hardware or software firewall, ensure that you configure the firewall to allow connections to the new port number before restarting the server. Otherwise, you might lose access to the remote server.