Training
Module
Employ remote management - Training
This module demonstrates the various tools for connecting remotely to a Windows client.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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). In this article, you learn how to change the listening port for Remote Desktop client using the registry.
Before you begin, make sure you have the following items:
Administrator access, or equivalent, to the computer you want to connect to.
A computer with Remote Desktop enabled.
A client to test the changes from, such as Remote Desktop Connect (mstsc.exe
).
To change the listening port, you can use the Registry Editor or PowerShell. Select the method you prefer.
To change the listening port using the Registry Editor, follow these steps:
Select the Start button, type Registry Editor, open Registry Editor from the best match list.
Using the navigation pane, expand the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
In the main pane, select PortNumber
From the menu bar, select Edit > Modify, then select Decimal.
Type the new port number, and then select OK.
Close the registry editor, and restart your computer.
The next time you connect to this computer by using the Remote Desktop Connection, enter the hostname along with the new port. For example, if you changed the port to use 3390, the address would be PC1.contoso.com:3390
If you're using a firewall, make sure to configure your firewall to permit connections to the new port number.
Training
Module
Employ remote management - Training
This module demonstrates the various tools for connecting remotely to a Windows client.