1. 打开注册表REGEDIT然后找到:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp下的PortNumber修改她的十进制值为你想修改后的值
不要用常见的默认服务端口且在1024-65535之间
![更改远程端控制的端口3398_远程控制](https://s2.51cto.com/attachment/200808/200808141218692133857.jpg?x-oss-process=image/resize,m_fixed,w_1184)
![更改远程端控制的端口3398_休闲_02](https://s2.51cto.com/attachment/200808/200808141218692108373.jpg?x-oss-process=image/resize,m_fixed,w_1184)
2. 这里我用5120端口
![更改远程端控制的端口3398_职场_03](https://s2.51cto.com/attachment/200808/200808141218692155809.jpg?x-oss-process=image/resize,m_fixed,w_1184)
3. 然后找到
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ WinStations \ RDP-Tcp
![更改远程端控制的端口3398_职场_04](https://s2.51cto.com/attachment/200808/200808141218692199043.jpg?x-oss-process=image/resize,m_fixed,w_1184)
4. 同样修改为你刚才修改的哪个端口5120
![更改远程端控制的端口3398_职场_05](https://s2.51cto.com/attachment/200808/200808141218692254511.jpg?x-oss-process=image/resize,m_fixed,w_1184)
5. 然后系统重新启动下,就可以用3389连接器远程连接操作了,运行里用命令MSTSC
IP:端口号来访问
![更改远程端控制的端口3398_休闲_06](https://s2.51cto.com/attachment/200808/200808141218692384213.jpg?x-oss-process=image/resize,m_fixed,w_1184)