How to change the Default RDP Port for enhanced security?
Changing the default RDP port from 3389 to a custom port enhances security by reducing exposure to automated attacks. This guide will walk you through the steps to change the default port in Windows, including updating registry settings and adjusting firewall rules.
Press "Win + R
" type "regedit
" and press "Enter
" to open the Registry Editor.
Navigate to the RDP Port Key in the following path "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
" and Locate the "PortNumber
" value in the right pane.
Double-click "PortNumber
" and select "Decimal
" and enter the new port number (between 1024 and 65535). Then, click "OK
".
For the changes to take effect, restart your server.
💡
When connecting via Remote Desktop, specify the new port number in the format
IP_address:port_number
.