Modify the Remote Desktop Connection port 3389

Source: Internet
Author: User

Server Settings (that is, the computer you want to connect to, such as a web server)

 

1. Choose Start> RUN> enter regedit, open the registry, and click the following path:

Or open C: \ WINDOWS to find regedit.exe. Double-click to open it.

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ terminalserver \ WDS \ rdpwd \ TDS \ Tcp]

Find the portnumber value on the right. The default value is 3389. Select "decimal" and change it to the desired port number (range: 1024 to 65535. It cannot conflict with the occupied port. No

The system cannot be started next time. Run the netstat-a command to view the port that is already in use on the local machine. Do not close the registry after modification, and use it in step 1.

2. Click the following path:

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ terminalserver \ winstations \ RDP-TCP]

Find the portnumber value on the right. The default value is 3389. Select "decimal" and change it to the desired port number (range: 1024 to 65535. It cannot conflict with the occupied port. No

The system cannot be started next time. Run the netstat-a command to check the port that is already in use on the local machine. Note that the modified port numbers must be consistent.

3. Restart your computer.

 

Client settings (that is, the computer you want to connect to the server, such as your home computer)

Click Start-run-enter the command mstsc (or click Start-Program-attachment, and double-click the Remote Desktop Connection icon to open it ).

The connection format is: Server IP: port number, for example, 202.103.224.68: 4000 (assume that 3389 is changed to 4000 ).

Then you can connect.

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.