修改windows默认的远程连接端口

打开注册表,找到以下路径项,并修改为你想要的端口,重启服务器即可。

HKEY_LOCAL_MACHINESystemCurrentControlSetControlTerminal ServerWinStationsRDP-TcpPortNumber
HKEY_LOCAL_MACHINESystemCurrentControlSetControlTerminal ServerWds dpwdTds cpPortNumber

注意选择十进制,修改之后,点确定,重启服务器生效。连接时加要上新的端口号。

原文地址:https://www.cnblogs.com/rusking/p/8135632.html