In this article, we are going to change rdp port used in Remote Desktop access.
By default, the Remote Desktop Connection port number is 3389.
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 order to do this follow these steps:
- Start Registry Editor (Run > Regedit)
- Locate and then click the following registry subkey:
- Find the "PortNumber" subkey
- Enter the port number in Decimal.
- Quit Registry Editor.
- Restart the computer.
The next time you connect to this computer by using the Remote Desktop connection, you must type the new RDP port.
This article’s method was tested on Windows 7 Enterprise, Windows 7 Professional, Microsoft Windows 10 Professional, Microsoft Windows Server 2003 Standard Edition, Windows Server 2008 and Windows Server 2012
How to connect RDP with custom port
you should write custom port number right after ip address like this :2020