The full form of RDP is the Remote Desktop connection, an essential feature for many users for setting up the remote access port to the computer. However, changing RDP can create multiple issues in maintaining usual working devices.
When you connect to a remote computer (either a Windows client or Windows Server) through the Remote Desktop connection, the Remote Desktop feature on your computer "hears" the connection through a listening port (3389 by default). You can change that listening port on Windows computers by modifying the registry. In this article, we are going to change the RDP port used in remote desktop access.
How to change RDP Port in Windows 10 [Updated for 2021]
We have divided all procedures into steps so that you can easily understand and use them in the system.
How to Change RDP Port in Windows 10 by Windows Registry
In Windows, the Windows Registry works as a configuration settings database for installed apps, Windows services, etc. Windows Registry is the best way to change the default RDP port from 3389 to the custom port.
- First, right-click on the start menu and click on the Run option, or you can use Windows and R keys on the keyboard to open the Run utility.
- Now, type the regedit and press OK to launch Windows Registry Editor.
- In the Windows Registry Editor, go in the locate and click on the following registry folder:
- After that, double click on the PortNumber in the RDP-Tcp folder.
- Select the Decimal option in the Edit DWORD(32-bit) value box and type a new port number.
- In the port number, change the values between 1 and 65353 in that value data box.
- You have to make sure that the values don't match any common ports, so if you select a common port (like port 80 for the web traffic), then you can't establish the Remote Desktop connection afterward.
- At last, press OK for saving the changes and restart the system to make changes successfully.
Connect a Remote Desktop by a Custom RDP Port
- Open the run utility by pressing Windows and R keys, then type mstsc and press Enter button.
- Now provide a specific IP address of the remote server and a new port number in a "Remote Desktop Connection" window, then press Enter button to begin the connection.
Configure Windows Firewall for Custom RDP Port
- Open the Run utility using the above method and type wf.msc then click the press Enter button.
- This command will open the Windows Firewall management option in which you can add a new firewall rule.
- Now select inbound rules in the Windows Firewall MMC menu. After selecting these values, select a new rule by Actions Panel on the right.
- After that, select port from the options list in the new Inbound Rule Windows Windows.
- As we are creating a custom rule for UDP and TCP ports, so first select the TCP, then select UDP.
- Now, click on the Next button to continue and select Allow the Action menu's connection, and press Next to continue.
- You need to identify which network firewall to apply changes in the Profile menu. Now, leave all of the entries enabled for full access and uncheck the public to prevent the Remote Desktop Connection on the public network. Once you are done with these changes, click on the Next to continue.
- Finally, provide the new network rule name with the description in the Name menu’s boxes and click on the Finish button to add a new rule.
- Repeat all of the above steps for the UDP port and restart the system to make changes successful.
We have tested this article’s methods on Windows 7 Enterprise, Windows 7 Professional, Microsoft Windows 10 Professional, Microsoft Windows Server 2003 Standard Edition, Windows Server 2008, and Windows Server 2012. We have included three different methods to change RDP ports in Windows 10 easily, and if you face any issue while using one method, then you can switch to another to change the RDP port easily.
If you like our given information, then please visit our MonoVM website for more informative blogs and hosting relating services.