windows修改默认端口3389
2023-10-10 17:06:36
michael007js
134
2、注册表修改
按“win+R”后输入,进入注册表编辑;
找到右侧的 "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
将这两个里面的值【v2.31|Action=Allow|Active=FALSE|Dir=In|Protocol=6|LPort=3389|App=%SystemRoot%\system32\svchost.exe|Svc=termservice|Name=@FirewallAPI.dll,-28775|Desc=@FirewallAPI.dll,-28756|EmbedCtxt=@FirewallAPI.dll,-28752|】中的【|LPort=3389】改成想要的端口
4、防火墙远程端口已经修改成功
5、