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.