View and modify the Windows instance Remote Desktop default port

Source: Internet
Author: User
Tags windows remote desktop

The default port for ECS Windows Instance Remote Desktop is 3389. Based on security considerations, some users have the need to modify the default port to reduce the number of malicious attacks and scans of ECS instances through Remote Desktop.

    • Before you modify the registry, you need to be fully aware of the Windows system operating mechanism to avoid error actions.
    • To avoid data loss, you need to create a snapshot of the instance system disk and the data disk before modifying the registry.
View ECS Windows Remote Desktop port method one
    1. Connect remotely and log on to the Windows instance.
    2. Select Start > Run, enter the cmd Open Command window.
    3. To execute the command tasklist /svc | find "Ter" , in this example, the PID of TermService is 1592.
    4. Execute the command netstat -ano | find "1592" to see the port used by TermService, such as 3389 in the example.
Method Two
    1. Connect remotely and log on to the Windows instance.
    2. Select Start > Run, enter regedit open Registry Editor.
    3. Look for the hkey_local_machine\system\currentcontrolset\control\terminal server\wds\rdpwd\tds\tcp, and look for the sub-key values for PortNumber, as shown in.
    4. Find HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\winstations\rdp-tcp, find the value of PortNumber, The two values are the same as normal, which is the port of the remote service.
Method Three
    1. Connect remotely and log on to the Windows instance.
    2. Select Start > Run, enter the cmd Open Command window.
    3. Execute the command reg query "hklm\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds" /s , this example looks at the PortNumber 16 binary value 0XD3D (equivalent to 10 binary 3389).
    4. Executes reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v portnumber the command to view the PortNumber value of the rdp-tcp.
Modify ECS Windows Remote Desktop port automatic modification

Buy 3389 Remote port modification tools in the cloud marketplace.

Manually Modify
    1. Connect remotely and log on to the Windows instance.
    2. Select Start > Run, enter regedit open Registry Editor.
    3. Look for Hkey_local_machine\system\currentcontrolset\control\terminalserver\wds\rdpwd\tds\tcp to find the sub-key value of PortNumber. Modify the value for the port that you want.
    4. Look for Hkey_local_machine\system\currentcontrolset\control\terminalserver\winstations\rdp-tcp to find the sub-key value of PortNumber. Modify the value for the port that you want.
Subsequent operations
      • After modifying the ECS Windows instance Remote Desktop port, you need to check the firewall, TCP/IP Filtering for Security rule restrictions, see the document Windows Firewall restricted port/ip/application access method and the exception configuration.
      • Verify that your security group configuration has released the newly added ports, see the documentation for adding security group rules.
      • Restart the ECS instance in effect configuration.

View and modify the Windows instance Remote Desktop default port

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.