Virtual Machines

Products

Virtual Machines

Documentation > Products > Virtual Machines > Method to View and Modify Remote Desktop Port of Windows System

Method to View and Modify Remote Desktop Port of Windows System

How to view the port of Windows Remote Desktop:

  1. View by command, i.e. click Start - Run - enter cmd, Confirm and then open the command window and execute the following command:

tasklist /svc | find "Ter"

You can see that the process ID of the TermService is 1764.

Then execute the following command:

netstat -ano | find "1764"

You can see the port used by the service, as shown in the figure below, is 3389

  1. Open the registry view and enter regedit in the Run to open the Registry Editor.

Check the value of the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp PortNumber subkey as shown in the following figure:

You also need to check the value of portnumber under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp. The two values normally ​​are the same, namely, the port number of the remote service.

How ​​to modify the port of Windows Remote Desktop:

  1. Start - Run and enter regedit to open the Registry Editor.

  2. Unfold the registry keys of "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\Wds\rdpwd\Tds\tcp" successively. The port number corresponding to the PortNumber key value underneath is the remote desktop port, and it can be modified to the port required by the user, as shown in the following figure:

  1. Then unfold the registry keys of "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp" successively in the registry. Change the PortNumber key value and save it according to the method above, as shown below:

Note: After the modification, you need to check whether there are limits for security rules in the firewall and tcp/ip filtering, and you need to restart the server to make the modification take effect.

If your problem still can not solved, please submit open ticket to us.

Update Time:2019-08-28 21:38:32