How to setup RDP custom port and configure firewall
Choose a New Port Number
Configuring the remote port
- Start the registry editor. (Type regedit in the Search box.)

- Navigate to the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
- Find PortNumber








- Click Edit > Modify, and then click Decimal.

- Type the new port number, and then click OK.

- Close the registry editor,
Updated on: 06/10/2025
Thank you!