全球主机交流论坛

标题: 我这个2012R2改3389的步骤哪里有问题吗? [打印本页]

作者: 法海    时间: 2021-2-1 11:29
标题: 我这个2012R2改3389的步骤哪里有问题吗?
本帖最后由 法海 于 2021-2-1 12:16 编辑

破案了,安全组忘了


首先添加防火墙入站规则,TCP和UDP各一条,对所有开放,确认远程开启


然后修改注册表,两项的PortNumber
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber






然后重启,无法远程

作者: 羞涩    时间: 2021-2-1 11:30
有一个修改3389端口的exe,每次该都没问题。
作者: 法海    时间: 2021-2-1 11:51
羞涩 发表于 2021-2-1 11:30
有一个修改3389端口的exe,每次该都没问题。

大佬软件名字是什么
作者: zxxx    时间: 2021-2-1 11:57
微软文档

Change the listening port for Remote Desktop on your computer

https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/change-listening-port

Applies to:

Windows 10, Windows 8.1, Windows 8,

Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2008 R2


  1. Start the registry editor. (Type regedit in the Search box.)
  2. Navigate to the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. Find PortNumber
  4. Click Edit > Modify, and then click Decimal.
  5. Type the new port number, and then click OK.
  6. Close the registry editor, and restart your computer.
复制代码


You can also change the RDP port by running the following PowerShell command.
In this command, we'll specify the new RDP port as 3390.
To add a new RDP Port to the registry:

  1. Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value 3390
  2. New-NetFirewallRule -DisplayName 'RDPPORTLatest' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort 3390
复制代码


看起来就两个步骤

1. 改端口
2. 改防火墙
作者: 法海    时间: 2021-2-1 11:58
zxxx 发表于 2021-2-1 11:57
微软文档

Change the listening port for Remote Desktop on your computer

我看官方社区有对在这个的补充
https://answers.microsoft.com/zh ... 3-83ce-7851eae2ce7f

但是我改完还是不行
作者: shaqiang    时间: 2021-2-1 11:59
哈哈哈 你现在端口是12345吗 看步骤应该都对
作者: zxxx    时间: 2021-2-1 12:00
法海 发表于 2021-2-1 11:58
我看官方社区有对在这个的补充
https://answers.microsoft.com/zh-hans/windows/forum/all/%E5%A6%82%E4% ...

那个用户和你一样的问题呀
作者: 朕的大清完了?    时间: 2021-2-1 12:01
提示: 作者被禁止或删除 内容自动屏蔽
作者: 羞涩    时间: 2021-2-1 12:01
3389modify.exe
禁止上传该类型的文件.

百度搜一下。 修改远程桌面端口
作者: mix    时间: 2021-2-1 12:07
腾讯?在控制台放行端口并重启
作者: 滑稽    时间: 2021-2-1 12:12
修改端口之后连接也要用端口号连接,比如your_ip_address:12345这样
作者: 法海    时间: 2021-2-1 12:15
mix 发表于 2021-2-1 12:07
腾讯?在控制台放行端口并重启

啊,我把这玩意忘了




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4