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.