1、防火墙安全组、云防火墙安全组添加修改替换的端口
2、注册表修改
按“win+R”后输入regedit,进入注册表编辑;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp;
找到右侧的 "PortNumber",用十进制方式显示,默认为3389,改为15312端口
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp,
3、注册表修改
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Defaults\FirewallPolicy\FirewallRules
RemoteDesktop-UserMode-In-TCP
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules
RemoteDesktop-UserMode-In-TCP
4、防火墙远程端口已经修改成功
5、重启服务器即可生效