Remote Desktop on Windows 11 keeps disconnecting via VPN

Hello,

I am trying to connect via Remote Desktop to my computer running Windows 11. With the Client I am connected via a WireGuard VPN, installed directly on a Fritzbox router and on my computer. From my Client then I connect to the VPN and then to the computer with RDP. The connection works smoothly at first, but then keeps disconnecting every 30 seconds or so. When I’m in the same local network, it works smoothly.

I don’t think it is a VPN error, because for example I can play through VPN with Remote Play with PS5.

I have already tried changing the various settings on Windows from here, but I keep having disconnection problems:

Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host.

Do you have any advice?

You can try disabling UDP in remote desktop. It doesn’t handle smaller MTU values well. See RDP over UDP failing on Windows 10 1809 with reduced MTU links - Server Fault . I find the easiest way to accomplish it is disable the rule that allows udp on port 3389 on the server but there’s a registry edit in the article as well.

MTU issue. calculate your correct MTU and explcitly set it on both sides of the tunnel.

I am afraid to write it down as I am using it, but…

It seems to be working now. I simply prioritized the WireGuard VPN (installed on the Fritzbox router) and the PC I connect to in RDP and that’s it.

I didn’t think it would take so little as I turned everything upside down to get this simple result.

Thank you all!

I’ve enabled “Disable UDP on Client” in GPEDIT.MSC (Remote Desktop Services), but the problem remains.