You can use Remote Desktop to connect to and control your PC from a remote device by using a Microsoft Remote Desktop client (available for Windows, iOS, macOS and Android). When you allow remote connections to your PC, you can use another device to connect to your PC and have access to all of your apps, files, and network resources as if you were sitting at your desk.
When you connect to a computer (either a Windows client or Windows Server) through the Remote Desktop client, the Remote Desktop feature on your computer "hears" the connection request through a defined listening port (3389 by default). You can change that listening port on Windows computers by modifying the registry.
Change the listening port in Remote Desktop
Learn how to change the listening port for Remote Desktop client.
This tutorial will show you how to change the Remote Desktop port on your Windows 10 and Windows 11 computer.
You must be signed in as an administrator to change the Remote Desktop port.
Remote Desktop does not support connecting to computers running a Windows Home edition, but you can connect to Pro, Enterprise, and Education editions of Windows from any edition.
EXAMPLE: Current Remote Desktop port
1 Open Registry Editor (regedit.exe).
2 Navigate to the key below in the left pane of Registry Editor. (see screenshot below)
3 In the right pane of the RDP-Tcp key, double click/tap on the PortNumber DWORD to modify it. (see screenshot above)
4 Click/tap on Decimal, type the port number you want to use, and click/tap on OK. (see screenshot below)
The default Remote Desktop port is 3389.
5 Close Registry Editor.
6 Restart the computer to apply.