全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1073|回复: 11

[Windows VPS] 我这个2012R2改3389的步骤哪里有问题吗?

[复制链接]
发表于 2021-2-1 11:29:22 | 显示全部楼层 |阅读模式
本帖最后由 法海 于 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:48 | 显示全部楼层
有一个修改3389端口的exe,每次该都没问题。
 楼主| 发表于 2021-2-1 11:51:19 | 显示全部楼层
羞涩 发表于 2021-2-1 11:30
有一个修改3389端口的exe,每次该都没问题。

大佬软件名字是什么
发表于 2021-2-1 11:57:19 | 显示全部楼层
微软文档

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:59 | 显示全部楼层
zxxx 发表于 2021-2-1 11:57
微软文档

Change the listening port for Remote Desktop on your computer

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

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

那个用户和你一样的问题呀
发表于 2021-2-1 12:01:15 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2021-2-1 12:01:54 | 显示全部楼层
3389modify.exe
禁止上传该类型的文件.

百度搜一下。 修改远程桌面端口
发表于 2021-2-1 12:07:49 来自手机 | 显示全部楼层
腾讯?在控制台放行端口并重启
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-5 13:28 , Processed in 0.088013 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表