I Remote Desktop Connection Error Code 0x904 Better [hot] Jun 2026

If you use a custom certificate (e.g., from an internal PKI), error 0x904 occurs when you connect via IP address but the certificate is issued to a hostname (or vice versa).

Better: Use openssl s_client to inspect server cert:

Right-click your primary internet adapter (Ethernet or Wi-Fi) and select . Navigate to the Power Management tab.

If error 0x904 persists after all fixes, use these last-resort strategies.

You can force Windows to regularly check the connection status, keeping the RDP tunnel open during brief network dips. i remote desktop connection error code 0x904 better

The client machine cannot reach the host within the allocated time frame.

: Ensure both "Remote Desktop" and "Remote Desktop (WebSocket)" are checked for Private and Public networks in your firewall settings.

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

A “better” solution is a permanent one. Implement these long-term measures. If you use a custom certificate (e

: Windows automatically generates self-signed certificates for the Remote Desktop Service ( TermService ). When these certificates silently expire, TLS tunnel construction fails.

Seeing Remote Desktop fail with error code ? Here’s a short, actionable guide to diagnose and fix it.

When you attempt to connect to a remote Windows machine (Server 2012, 2016, 2019, 2022, or Windows 10/11 Pro/Enterprise) and are met with:

Always leave Network Level Authentication enabled for better security unless it is strictly necessary to disable it for compatibility reasons. If error 0x904 persists after all fixes, use

If you are connecting to a Windows Server running RDS Session Host, the issue is likely on the server side.

: Users on Microsoft Q&A report that the modern Remote Desktop app from the Microsoft Store often bypasses errors found in the built-in mstsc.exe client. Quick Troubleshooting Steps

Licensing issues often persist unless the licensing service is reset along with RDP.

Short version for social post: "Getting Remote Desktop error 0x904? Try restarting both PCs, confirm network access and correct credentials, ensure RDP & NLA settings match on client/server, open TCP 3389 in firewalls, update Windows/RDP client, and check Event Viewer for details. If needed, test from another device or adjust NLA temporarily to isolate the problem."