注:机翻,未校。
FIX: RDP freezes or hangs on Windows 11 24H2
修复:RDP 在 Windows 11 24H2 上冻结或挂起
Author: Konstantinos Tsoukalas,
Last updated: March 10th, 2025
If you are trying to RDP to a machine running Windows 11 v24H2 and the connection hangs and freezes, continue below to fix the problem.
如果您尝试将 RDP 连接到运行 Windows 11 v24H2 的计算机,并且连接挂起并冻结,请继续下面的作以解决问题。
Many users have reported freezing issues when trying to connect via Remote Desktop Protocol (RDP) to a target computer running Windows 11 version 24H2. More specifically, RDP stops responding, lags, or crashes completely after upgrading the target/remote machine to Windows 11 version 24H2.
许多用户报告说,在尝试通过远程桌面协议 (RDP) 连接到运行 Windows 11 版本 24H2 的目标计算机时出现冻结问题。更具体地说,在将目标/远程计算机升级到 Windows 11 版本 24H2 后,RDP 停止响应、滞后或完全崩溃。
In this guide you’ll find two (2) methods to fix the RDP freezing issues on Windows 11 24H2.
在本指南中,您将找到两 (2) 种方法来解决 Windows 11H24H2 上的 RDP 冻结问题。
How to FIX: Remote Desktop Connection (RDP) freezing issues on Windows 11 v24H2.
如何修复:Windows 11 v24H2 上的远程桌面连接 (RDP) 冻结问题。
Method 1. Change Connection Speed in Client RDP settings.
方法 1.在客户端 RDP 设置中更改连接速度
The first method to resolve the RDP freezing on Windows 11 24H2, is to set manually the Remote Desktop connection speed on the Client machine.
解决 Windows 11 24H2 上 RDP 冻结的第一种方法是在客户端计算机上手动设置远程桌面连接速度。
1. Open the RDP settings, select the Experience tab and change the connection speed from Detect Connection quality automatically to LAN 10 Mbps or higher). Then, click Connect and see if the problem is solved. If not, follow the instructions on method-2 below.
打开 RDP 设置,选择“体验”选项卡,然后将连接速度从“自动检测连接质量”更改为 LAN 10 Mbps 或更高)。然后,单击 Connect 并查看问题是否已解决。如果没有,请按照下面方法 2 中的说明进行作。
Method 2. FIX RDP freezing issues on Windows 11 v24H2 via Group Policy
方法 2.通过组策略修复 Windows 11 v24H2 上的 RDP 冻结问题
The second method to solve the aforementioned problem is to prevent the target machine from detecting the network quality by modifying its group policy. To do this, on the target/remote machine you are trying to connect to via RDP, follow the steps below.
解决上述问题的第二种方法是通过修改其组策略来防止目标机器检测网络质量。为此,请在您尝试通过 RDP 连接的目标/远程计算机上,按照以下步骤作。
1. Simultaneously press the Windows + R keys to open run command box.
同时按下 Windows + R 键打开运行命令框。
2. Type gpedit.msc and press Enter.
键入 gpedit.msc,然后按 Enter。
3. In Local Group Policy Editor navigate to:
在本地组策略编辑器中,导航至:
Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections
本地计算机策略 - > 计算机配置 - > 管理模板 - > Windows 组件 - > 远程桌面服务 - > 远程桌面会话主机 - > 连接
4. At the right pane, open the Select network detection on the server policy.
在右侧窗格中,打开 Select network detection on the server 策略。
5. Here, set the policy to Enabled and below choose Turn off Connect Time Detect and Continuous Network Detect. Then, click Apply > OK.
在此处,将策略设置为 Enabled,然后在下方选择 Turn off Connect Time Detect 和 Continuous Network Detect。然后,单击 使用 > 确定.
6. Now, close the Policy Editor and give the following command (as Administrator) to apply the change, or restart the machine:
现在,关闭策略编辑器并发出以下命令(以管理员身份)以应用更改或重新启动计算机:
gpupdate /force
Fix: Remote Desktop (RDP) Session Freezes (Disconnects) on Windows
修复:Windows 上的远程桌面 (RDP) 会话冻结(断开连接)
March 18, 2024
In Windows 10/11 and Windows Server 2022/2019/2016, when connecting to a Remote Desktop (RDS) server, UDP port 3389 is used in addition to the default RDP port TCP/3389. When your RDP client connects to the server, multiple sessions are established. The TCP (HTTP) control session is used to transmit the keyboard and mouse commands, and several UDP sessions are used to send the Remote Desktop images.
在 Windows 10/11 和 Windows Server 2022/2019/2016 中,连接到远程桌面 (RDS) 服务器时,除了默认的 RDP 端口 TCP/3389 外,还会使用 UDP 端口 3389。当您的 RDP 客户端连接到服务器时,将建立多个会话。TCP (HTTP) 控制会话用于传输键盘和鼠标命令,多个 UDP 会话用于发送远程桌面映像。
Check your MSTSC client is using UDP transport mode by clicking the Connection Info icon in the top RDP connection bar. The UDP protocol is used in our case.
通过单击顶部 RDP 连接栏中的 Connection Info(连接信息)图标,检查您的 MSTSC 客户端是否正在使用 UDP 传输模式。在我们的例子中使用 UDP 协议。
The quality of the connection to the remote computer is excellent and UDP is enabled.
According to Microsoft, the use of the UDP protocol can significantly improve the responsiveness of the Remote Desktop session by reducing the number of retransmissions and the ability to work over unstable, high-latency connections.
根据 Microsoft 的说法,使用 UDP 协议可以通过减少重传次数和处理不稳定、高延迟连接的能力来显着提高远程桌面会话的响应能力。
RDP Connection Freezes When Using UDP Protocol
使用 UDP 协议时 RDP 连接冻结
In some cases, using the UDP protocol for an RDP connection can cause problems: periodic image freezing, random disconnection of an RDP session, users seeing a black screen instead of the Remote Desktop, etc. Reconnecting to the RDP session usually helps in these cases. Sometimes this problem occurs frequently and affects the user’s normal functioning.
在某些情况下,将 UDP 协议用于 RDP 连接可能会导致问题:定期图像冻结、RDP 会话随机断开连接、用户看到黑屏而不是远程桌面等。在这些情况下,重新连接到 RDP 会话通常会有所帮助。有时此问题经常发生并影响用户的正常功能。
The problem with RDP sessions freezing occurs:
出现 RDP 会话冻结问题:
- If you are using RDP sessions within VPN tunnels (commonly encountered when using an OpenVPN Server). The cause of this is a fragmentation of UDP packets. This is caused by fragmentation of UDP packets as they are sent through the VPN tunnel (caused by different MTU settings);
如果您在 VPN 隧道中使用 RDP 会话(通常在使用 OpenVPN 服务器时遇到)。造成这种情况的原因是 UDP 数据包的碎片化。这是由于通过 VPN 隧道发送 UDP 数据包时出现碎片化(由不同的 MTU 设置引起)引起的; - After updating Windows 11/10 to 22H2/22H2 build;
将 Windows 11/10 更新到 22H2/22H2 版本后; - When using the Remote Desktop Gateway on Windows Server 2022 and port 3391 for UDP traffic.
在 Windows Server 2022 上使用远程桌面网关和端口 3391 进行 UDP 流量时。
Moreover, the problem is not related to poor performance of the RDS host, as described in the case at the link: the server has enough free resources, memory and CPU are not being used at a high rate.
How to Disable the UDP Protocol over RDP
如何禁用 RDP 上的 UDP 协议
To resolve the issue of RDP sessions freezing when using VPN tunnels, you can try disabling the use of the UDP transport protocol.
要解决在使用 VPN 隧道时 RDP 会话冻结的问题,您可以尝试禁用 UDP 传输协议。
You can disable UDP over RDP via Group Policy.
您可以通过组策略禁用基于 RDP 的 UDP。
- Open the local GPO editor console (
gpedit.msc
);
打开本地 GPO 编辑器控制台 (gpedit.msc
); - Expand Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections;
展开 计算机配置 -> 管理模板 -> Windows 组件 -> 远程桌面服务 -> 远程桌面会话主机 -> 连接; - Enable the policy Select RDP transport protocols and set Select Transport Type = Use only TCP;
启用策略选择 RDP 传输协议,并设置选择传输类型 = 仅使用 TCP;
- Restart the RDS/RDP server for the settings to take effect;
重新启动 RDS/RDP 服务器以使设置生效; - Reconnect to the RDP server and click the Connection Information icon. The following message should appear here:
重新连接到 RDP 服务器,然后单击 Connection Information 图标。此处应显示以下消息:
The quality of the connection to the remote computer is good.
This means that only TCP is used for the RDP connection.
这意味着 RDP 连接仅使用 TCP。
This method allows you to disable the use of the UDP transport protocol on the RDP/RDS server side. Suppose you want to disable UDP for Remote Desktop on the client side. In that case, you need to enable the Turn off UDP on Client option under Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Connection Client.
此方法允许您在 RDP/RDS 服务器端禁用 UDP 传输协议。假设您想在客户端禁用远程桌面的 UDP。在这种情况下,您需要在计算机配置 - > 管理模板 -> Windows 组件 - > 远程桌面服务 - >远程桌面连接客户端下启用关闭客户端上的 UDP 选项。
After making changes, update the local policy settings using the gpupdate /force
command and restart the mstsc.exe client.
进行更改后,使用 gpupdate /force
命令更新本地策略设置并重新启动 mstsc.exe 客户端。
You can also enable this option in the registry (the GPO policy mentioned above corresponds to the fClientDisableUDP registry parameter):
您还可以在注册表中启用此选项(上面提到的 GPO 策略对应于 fClientDisableUDP 注册表参数):
reg add "HKLM\software\policies\microsoft\windows nt\Terminal Services\Client" /v fClientDisableUDP /d 1 /t REG_DWORD
To disable UDP over RDP on computers joined to an Active Directory domain, you must configure a GPO using the domain Group Policy Management console (gpmc.msc
).
要在加入 Active Directory 域的计算机上禁用基于 RDP 的 UDP,必须使用域组策略管理控制台(gpmc.msc)配置 GPO。
via:
FIX: RDP freezes or hangs on Windows 11 24H2. - WinTips.org
https://www.wintips.org/fix-rdp-freezes-or-hangs-on-windows-11-24h2/Fix: Remote Desktop (RDP) Session Freezes (Disconnects) on Windows | Windows OS Hub
https://woshub.com/rdp-session-freezes-udp/rdp-error-general-troubleshooting - Windows Server | Microsoft Learn
https://learn.microsoft.com/zh-cn/troubleshoot/windows-server/remote/rdp-error-general-troubleshooting
其他相关
如何使用 win 自带工具(mstsc)远程控制不在同一局域网内的电脑以及端口映射介绍不在一个局域网的电脑可以远程吗 - CSDN 博客 提提菜 于 2018-05-10 19:29:13 发布
https://blog.csdn.net/int_louis/article/details/80271975win10 内网穿透实现远程桌面连接(超详细) - 知乎 饮屠苏醉千觞 发布于 2020-03-24 13:22
https://zhuanlan.zhihu.com/p/115826053基于 Unraid 的高成本自建网盘及私有云服务:Wireguard+DDNS 实现安全远程访问 - 知乎 G.Lin 发布于 2021-01-23 09:12
https://zhuanlan.zhihu.com/p/346386317win11 家庭版设置远程桌面_win11 家庭版远程桌面 - CSDN 博客 小白还是大白 于 2022-09-15 23:54:25 发布
https://blog.csdn.net/qq_39129794/article/details/126881577家庭版 Windows11 开启远程桌面被控 - 知乎 穿山甲说了什么 发布于 2023-01-24 11:39
https://zhuanlan.zhihu.com/p/600706130【家庭版 windows 远程桌面连接攻略】_wife 怎么远程桌面 - CSDN 博客 阿里嘎多小青 已于 2024-01-25 20:50:39 修改
https://blog.csdn.net/m0_46343087/article/details/135831946【Windows 日常】Win10,Win11 家庭版如何开启远程桌面?——Mac 笔记本如何远程控制 Windows 电脑?-CSDN 博客 别出 BUG 求求了 已于 2024-11-16 10:12:50 修改
https://blog.csdn.net/weixin_39589455/article/details/135398096【远程桌面连接】RDPW 出现问题原因及方案_listener state not listening-CSDN 博客 阿里嘎多小青 已于 2024-04-11 17:57:16 修改
https://blog.csdn.net/m0_46343087/article/details/136512940win11 家庭版使用远程桌面 - RDPWrapper 常见问题_listener state not listening-CSDN 博客 克拉拉 KLARA 已于 2025-02-10 23:29:15 修改
https://blog.csdn.net/m0_53401243/article/details/126150791