RDP constantly reconnecting

cs_cadguy 1 Reputation point
2021-01-14T14:48:34.327+00:00

For months I have been using RDP by connecting into my customer's network to carry out some work.

5 days ago the RDP starting losing it's connection, and subsequently reconnecting successfully. Now it is so frequent that it is tough to use and I'm left to try to figure out what is wrong.
I have noticed that if I just leave the RDP window open it doesn't happen, but when I start to work it'll constantly try to reconnect.

I have uploaded a section of the logs showing a sequence of RDP disconnecting then reconnecting.

I am on Windows 10 Pro, 10.0.19041.

56681-logs.txt

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,718 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. LM_BRI_Work 15 Reputation points
    2025-02-06T18:34:49.3666667+00:00

    Just putting this out there for anyone else the comes across this issue. It's now Feb, 2025 and I'm running the most recent version of Windows 11. I have been having this issue where RDC would keep disconnecting and then reconnecting shortly after. It would happen every 1-2 minutes making RDC very frustrating and nearly unusable. Another thing to keep in mind that I'm remoting into a outdate 2012 Windows Domain Controller/Server.

    After troubleshooting and trying multiple fixes, the issue was found with the UDP. By default, Windows 10 and Server 2012 R2+ use UDP for RDP because UDP can be faster and more efficient for remote desktop connections. However, UDP is connectionless, meaning it doesn’t guarantee packet delivery the way TCP does. This can cause frequent disconnections in certain network environments.

    Anyway, I forced RDP to use TCP instead and disabled UDP. This seemed to work. Here's how I did it:

    1. On the client side (your computer/laptop), open Registry Editor (regedit)
    2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client
    3. Create a new DWORD (32-bit) Value:
    • Name: fClientDisableUDP
      • Value: 1
    1. Restart your PC and test RDP again.

    Hope this can help solve some connection issues.

    3 people found this answer helpful.

  2. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,786 Reputation points Microsoft Vendor
    2021-01-15T05:07:05.053+00:00

    Hi,

    Please check on the remote PC if there is group policy to set the RDP transport protocols as "Use only TCP". If so, please change it to "Use both UDP and TCP".
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections

    56896-image.png

    Thanks,
    Eleven

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    1 person found this answer helpful.

  3. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,786 Reputation points Microsoft Vendor
    2021-01-18T03:54:15.873+00:00

    Hi,

    Please read "Remote Desktop Client Troubleshooting: Disconnect Codes and Reasons" and check event logs to find the disconnect reason.
    https://social.technet.microsoft.com/wiki/contents/articles/37870.remote-desktop-client-troubleshooting-disconnect-codes-and-reasons.aspx

    Thanks,

    Eleven

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    0 comments No comments

  4. John JY 221 Reputation points
    2021-10-26T17:43:20.357+00:00

    @cs_cadguy I am having a similar issue now. Did you find the solution?

    Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.