Windows Server Remote Desktop modify the default port

First, open the registry (regedit input command input by the registry to open the transport start menu, key or key + R Win open regedit input box enter a carriage return)

Second, open the registry, in the left side of the Properties menu to access the following path "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ Wds \ rdpwd \ Tds \ tcp", find fight "PortNumber" key control port number, and then modify ;

Three, and then modify "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ WinStations \ RDP-Tcp" corresponding to "PortNumber" value, together to get rid of. Rarely modified port number used to specify the range of the remote connection port between 1025-65535, such as 7892 may be changed.

IV. After modifying the above two settings, if you set the [Windows Firewall], be sure to inbound firewall rules to release these two ports you set. As shown below

V. After setting up a firewall, make sure the next step, if your server is a cloud server (such as Tencent cloud, Ali cloud, cloud Huawei, etc.), be sure to check that the server instance is to set the security group, if you set the security group, the security group in the port release.

Sixth, restart the server.

Guess you like

Origin www.cnblogs.com/bubuchu/p/11913990.html