Remote Desktop Connection Error Code 0x904 Extended Error Code 0x7 Full ((hot)) Site
Troubleshooting Guide: Remote Desktop Connection Error Code 0x904 (Extended Error Code 0x7)
Article Difficulty: Advanced / System Administrator Level
Estimated Reading Time: 8 minutes
Also check if the host is out of memory or has corrupt RDP listener configuration. Open Registry Editor
Enable RDP Client Logging
- Open Registry Editor.
- Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client - Create a new DWORD:
RDGClientTracewith value15(hex). - Create a new String:
RDGClientTraceFilewith valueC:\temp\rdp_trace.txt. - Reproduce the error.
- Open the trace file. Search for
0x904and0x7. You will see the exact HTTP response code (e.g., 400 Bad Request, 502 Gateway Error).
Use PowerShell to see if the RDP port (3389) is actually reachable: Test-NetConnection [TargetIP] -Port 3389 4. Registry Fix (Client-Side) Use PowerShell to see if the RDP port
- Confirm server name, port, and RD Gateway settings in the RDP client.
- If using an RD Gateway, verify gateway address and authentication method (password, smart card).
2. Check Firewall Settings Firewalls are the most common cause of 0x904 errors. The remote computer must allow incoming connections on the RDP port. Confirm server name