Ensure that Remote Desktop (WebSocket) is allowed through the Windows Defender Firewall on both the client and host machines. If using a VPN, ensure it is stable; switching from a computer name to a direct IP address in the connection field can also bypass local DNS resolution issues.
: If connecting over a VPN, ensure you have sufficient bandwidth; high packet loss can trigger this code.
Press Windows Key + R , type gpedit.msc , and press to open the Local Group Policy Editor.
Do the same for . 2. Reset or Reconfigure RDP Certificates i remote desktop connection error code 0x904 better
Uncheck to force a clean data stream.
If you want to troubleshoot this specific connection further, let me know:
Open the Start menu, type , and press Enter. Click the Change settings button at the top right. Scroll down until you find Remote Desktop . Ensure both the Private and Public checkboxes are ticked. Click OK to save changes. 3. Optimize Remote Desktop Client Settings Ensure that Remote Desktop (WebSocket) is allowed through
Security software like Bitdefender or Windows Defender blocking mstsc.exe . Step-by-Step Fixes 1. Renew Expired RDP Certificates (Recommended)
The client machine may have a corrupted license cache.
Error 0x904 is not a network glitch—it’s a . The better approach is to either: Press Windows Key + R , type gpedit
: Ensure both "Remote Desktop" and "Remote Desktop (WebSocket)" are checked for Private and Public networks in your firewall settings.
If you’re using the built-in Microsoft Store version of “Remote Desktop” (not mstsc.exe ), error 0x904 is often a client-side app bug.