Experienced and Reliabile Hosting Service Provider! Switch to Cloudies365 and Save Upto 50%
How to Change RDP Port Number for a Windows Server?
Remote Desktop Protocol (RDP)’s default desktop port number is 3389. With this article, we will list out all the steps that help in changing the RDP port for a Windows Server. Users are advised to follow the given steps if they wish to complete the process without any hassle.



How can you change The Listening Port on Windows Computers?
Method 1: Change the RDP Port on the Registry
In the registry, there are two ways to modify an RDP port. Users commonly find themselves searching for phrases like “Change remote desktop port Windows Server 2019” and “Change RDP port number in Windows Server 2019.” To effectively change the Remote Desktop Protocol Port in the registry, adhere to the instructions listed below.
1.1 By Modifying the Registry Manually, change the RDP Port.
- Open the Windows Run dialog box by pressing “Windows + R” on your keyboard.
- The Windows Registry Editor will launch once you type “regedit” in the Run box and hit Enter.
- Navigate to the subsequent registry subkey by doing so now:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal `Server\WinStations\RDP-Tcp\PortNumber
- Once the user has entered the subkey, select Edit from the menu.
- The user will then need to select the Modify option.
- After selecting the edit key, select Decimal from the drop-down menu.
- You must insert the new port number here and then select the OK button.
Note: The mentioned range for the RPD ports is 1024-65535. Users are usually advised to note it down and keep it safe to avoid any difficulty in the process.



1.2 Change the Registry with PowerShell Command
Users must initially launch Windows PowerShell within their operating system. Enter “PowerShell” to discover the appropriate option to select.



The following commands must now be executed by users in the Administrator Windows PowerShell. Please write down the following command:
Set-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp’ -Name ‘portnumber’ -Value 33899



Note: The RDP port for the last step is changed to 33899. So, as per your parameters, you’re supposed to change the settings.
Method 2: In Windows Firewall, open the new RDP Port
Before it can be used, the firewall must have the newly configured Remote Desktop Protocol Port open. To open a port in Windows Firewall, users are advised to consult the How to Open a Port in Windows Firewall guide.



If the answers offered by this solution are insufficient, move on to the following strategy to bring the process to a successful conclusion.
Method 3: Restart the RDP Service
Step 1: Users must enter “services” in the Search box as the first step. Now, this will display your operating system’s Services box.



Step 2: It is advised for users to restart the remote desktop services by right-clicking on the “Restart” option. Now users must wait for the restart procedure to complete successfully.



Method 4: Run a Test
Users advise using the option of a new Remote Desktop Protocol Port to test the server’s connection.
Note: In the computer Column, the users are supposed to enter the “IP: PORT”. After entering, you need to click on the connect option to proceed further.



The user will be presented with a screen labeled “Window Security” after selecting the connect option.
Enter your username and password in the field, and don’t forget to tick the “Remember me” box.
Last but not least, click OK.



We hope by using all these methods, the user is able to change the RDP Port in the Windows server.
Frequently Asked Questions
Q. With the help of Windows Registry, how to change the RDP Port in Windows?
- As a manager or an administrator, launch the command prompt.
- Open Registry Editor by typing “regedit” at the command prompt. Locate the following subkey in the registry and then click:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber – TcpPortNumber is where you set the number of the port. - On the Edit menu, select Modify, and then select Decimal.
- After entering the new port number, hit OK.
- Put an end to Registry Editor.
- Launch the computer again.
Q. What is the correct way to connect a Remote Desktop with a Custom RDP Port?
With the help of these steps, you will learn how to change the RDP port into 33091.
Note: The RDP port default number is 3389.
Step 1: Connect to a Windows client or server via RDP.
- To launch the Registry Editor, press WIN+R, type regedit, and then hit Enter.
Step 2: Go to the Remote Desktop Registry (RDP-Tcp) in step two.
- Navigate to HKEY LOCAL MACHINESystemCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp.
Step3: Default RDP port number change
- By double-clicking the PortNumber value (Decimal), the port can changed to 33091.
- Change-RDP-port-tutorial-v2cloud
- Click OK to save the changes.
- You must restart your Windows machine or the RDP services using the command prompt for modifications to take effect.
- Command: “net” to cease saying “service and net.”
Step 4: Following a Windows machine restart
- Connect to it via RDP, then add the new RDP port.
Step 5: Verify that the RDP port is open.
- The netstat -na | Find “List” command can be used to check that Remote Desktop Service is listening on the new port after you’ve connected to the Windows PC using the new RDP port.
- It is less likely that port scanners or RDP vulnerabilities will used if the RDP port changed.
Q. How do you Configure a Windows Firewall for a Custom RDP Port?
Make sure to follow the given rules step by step to configure a Windows firewall for a Custom RDP Port:
- Step 1: Start Windows Firewall first. Given that you were able to successfully open an RDP connection there, we assume you are familiar with the Windows Firewall interface.
- Step 2: Launch Windows Firewall in step 2 and choose the Advanced tab. An Advanced Security window will open when Microsoft Windows launches the Windows Firewall.
- Step 3: After choosing Inbound Rules on the left, choose New Rule in the right pane.
- Step 4: Check out the port radio and select the following tab.
- Step 5: Enter the RDP listening port’s new or modified port number while keeping the TCP radio checked. Select Next.
- Step 6: Make sure the Allow the Connection box ticked, then press the Next button.
- Step 7: Choose the networks to which this rule should apply on the subsequent page by clicking the Next button.
- Step 8: Name the Rule and press the Finish button afterward.