An error occurs when logging into Server 2019 remotely:Error:RDP negotiate connection failed

庆甲 孟 0 Reputation points
2026-07-22T09:12:59.5966667+00:00

When connecting to a Windows Server 2019 via an RDP client, the following error occurs after 90 days: 'Error: RDP negotiate connection failed, Please check Service port or server config.' The connection is restored and works normally for another 90 days after restarting the server or the Remote Desktop service, but the error recurs after that period. Could you please explain the root cause and provide a permanent solution? Thanks in advance。

Windows for business | Windows Server | User experience | Remote desktop services and terminal services
0 comments No comments

1 answer

Sort by: Most helpful
  1. Hoang Le 3,935 Reputation points Independent Advisor
    2026-07-22T11:05:14.6533333+00:00

    Dear 庆甲 孟,

    The error you describe is a known issue with Windows Server 2019 RDP services where the Remote Desktop Services stack (TermService) leaks resources over time, typically around the 90‑day mark, causing the RDP negotiation to fail. Restarting the service or the server clears the state, which is why it works again for another cycle. The root cause is not a port or firewall misconfiguration but a long‑running memory handle exhaustion in the RDP listener process.

    The permanent solution is to apply the latest cumulative updates for Windows Server 2019, because Microsoft has addressed this in later builds (post‑2022 patches). If you are already fully patched and the issue persists, the supported workaround is to configure a scheduled restart of the Remote Desktop Services (TermService) before the 90‑day threshold, which prevents the listener from reaching the failure state. In environments where uptime is critical, Microsoft recommends monitoring the RDP listener health and automating service recycling rather than waiting for a manual restart.

    If my answer is useful for you, please hit Accept the answer to support me.

    Thank you,

    HL.

    Was this answer helpful?

    0 comments No comments

Your answer

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