Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to modify the remote Desktop connection Port

Shulou Source: shulou.com Published: 2022-06-01 04:38:09 10月05日 Update

First open the registry: run-regedit:

The numerical data of the PortNumber of the key HKEY_LOCAL_MACHINE\ System\ CurrentControlSet\ Control\ Terminal Server\ Wds\ Repwd\ Tds\ Tcp is the port used. The default value is 3389 (decimal), which can be modified to other ports such as 3111 to improve security performance.

HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ TerminalServer\ WinStations\ RDP-TCP finds the port number on the right. The default is 3389, select decimal, and change it to the port number you want (range from 1024 to 65535, which cannot conflict with the occupied port, otherwise you won't be able to start the system next time. The command netstat-a can be used to check the ports that are already in use on this machine. Note here that the modified port numbers are the same in both places.

After modifying the port, when logging in to remote Desktop, after entering the IP address, you need to specify a new port, such as:.

Tags: Port decimal slogan decimal desktop consistent security right command address security that is values data registry system scope native conflict login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Apple MySQL Linux Shulou Tech Info