Home >System Tutorial >Windows Series >Teach you how to modify the Win7 remote port number

Teach you how to modify the Win7 remote port number

PHPz
PHPzforward
2024-01-08 19:25:502356browse

Win7 can use remote desktop through the remote port to achieve the effect of controlling the desktop with another computer. But if we use the default port number for remote operations, because the default port numbers are the same, they may be invaded by others. At this time, we can change our remote port number. Let’s take a look at it together.

Win7 remote port number changing tutorial

1. First, press "regedit" on the keyboard and press Enter to confirm.

Teach you how to modify the Win7 remote port number

2. Enter "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" at the location shown in the icon in sequence

Teach you how to modify the Win7 remote port number

3. Then Find the "Terminal Server\Wds\rdpwd\Tds\tcp" path and double-click to open the "portnumber" file on the right.

Teach you how to modify the Win7 remote port number

4. Then check "Decimal" and change the numerical data to the desired port number. Here I changed it to "32487" (3389 in the picture is the default port No.)

Teach you how to modify the Win7 remote port number

5. Then go to the path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp"

Teach you how to modify the Win7 remote port number

6. Then use the above method to open the "portnumber" file and change the value to the port number we want to change.

#7. Then we open the firewall and check whether the remote desktop can be used. If the icon position is as dark as the picture. The following changes are also required.

Teach you how to modify the Win7 remote port number

##8. Return to the registry and go to the following path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Defaults\FirewallPolicy\FirewallRules"

Teach you how to modify the Win7 remote port number

9. Double-click to open "RemoteDesktop-In-TCP" at the location shown above, and change all values ​​with "3389" to our own ports.

Teach you how to modify the Win7 remote port number

10. Then go to the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules" location in the registry.

Teach you how to modify the Win7 remote port number

11. Change the "RemoteDesktop-In-TCP" in the above picture, and then change all the values ​​with "3389" to our own port.

Teach you how to modify the Win7 remote port number

#12. Finally, just restart the computer and you are done.

Teach you how to modify the Win7 remote port number

The above is the detailed content of Teach you how to modify the Win7 remote port number. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:somode.com. If there is any infringement, please contact admin@php.cn delete