网络连接-->属性-->本地连接-->属性-->高级-->设置-->选择本地连接-->设置-->可以添加要对外界开放的端口,也可以编辑。
远程桌面的端口更改,目的是避免经常被人扫描3389暴力破解或总尝试登录:
步骤:打开“开始→运行”,输入“regedit”,打开注册表,进入以下路径:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\
Wds\rdpwd\Tds\tcp\PortNamber
其默认值是3389,
修改成所希望的端口即可,例如6111。
再打开
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\
WinStations\RDP-Tcp\PortNumber
默认是3389
修改成端口6111。