Unlike many RDP errors that relate to network connectivity or firewalls, error 0x904 is specifically a . It commonly occurs in the following scenarios:
In your RDP client, enter the (e.g., 192.168.1.50 ) instead of the computer name.
Error 0x904, while frustrating, is usually resolvable by addressing the underlying cause, which is most often , security configuration mismatches , or certificate problems . The best approach is to:
Open Command Prompt as Administrator and run: restart-service termserv -force . i remote desktop connection error code 0x904 install
The 0x904 error can arise from multiple sources. Based on aggregated user reports and troubleshooting guides, common causes include:
For Azure Virtual Machines, the solution often involves renaming the MachineKeys folder:
Windows 11 clients may fail to connect to older servers if TLS 1.2 is not enabled or if encryption suites do not match. Step-by-Step Troubleshooting Guide 1. Renew Expired RDP Certificates Unlike many RDP errors that relate to network
Press , type certlm.msc , and press Enter to open the Local Computer Certificate Store. Expand Remote Desktop and click Certificates .
If you are getting this error while trying to install software via RDP:
The underlying Windows services required for remote connections are not running. The best approach is to: Open Command Prompt
In containerized or virtualization environments, this error can also surface. For example, VNC might work, but RDP fails within Docker containers on Ubuntu running Windows VMs. This typically points to specific port forwarding ( 3389 ) or configuration issues within the container environment. Ensure network bridging or port mapping is correctly configured.
If standard RDP remains broken, consider using alternative remote access tools like AnyViewer or the Microsoft Remote Desktop app from the Microsoft Store, which can sometimes bypass legacy protocol errors.
To fix the error, we must first understand what the hexadecimal code 0x904 (decimal 2308) represents in the Windows Sockets and RDP stack.