# Changing the RDP port on Windows Server

Source: <https://beta.dedicated.com.tr/en/kb/changing-the-rdp-port-on-windows-server>  
Last updated: 2026-11-28

You can change the Remote Desktop (RDP) port on all versions of Windows Server 2008, 2012 and 2016 with these steps.

1. Open the Registry Editor with **regedit**.
2. Go to this key:

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

3. Right-click the **PortNumber** value and choose **Modify**.
4. Set the base to **Decimal** and enter the port number you want to use (e.g. `3489`).
5. If Windows Firewall is on, remember to allow the new port for both TCP and UDP.
6. When you have finished, remember to restart the server.
