While connected to remote Windows machines via RDP in Windows 10, the connection freezes after x amount of minutes. Pretty often.
The resolution was to disable UDP.
- Run gpedit.msc.
- Navigate to Computer Configuration > Administration Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client.
- Set the “Turn Off UDP On Client” setting to Enabled.
This seems to have appeared when I upgraded to Windows 10 Pro 1903, though my RDP isn’t used very often from this machine. I’ve also seen issues on forums dating back to 1809. You can check your version by going to settings > about.
I noticed that I wasn’t getting kicked off anymore, but the quality of the screen went down, like everything became less crisp or fuzzy.
I have read that using a RD Gateway forces MSTSC to use TCP connections (or TCP/HTTPS) which disables the UDP sessions as well.
I read that this was an issue with the graphics card drivers. I updated the drivers on my client, but that didn’t help.
I then moved on to MobaXterm, which I probably should have done long ago. Not only did it solve my issue, but the organization is great and supports far more than RDP. Examples are SSH, Telnet, FTP, SFTP, Serial, AWS S3 and more.