Windows Defender or third-party antivirus software (like Bitdefender) blocking mstsc.exe or RDP traffic.
Search for in the Start menu. Click Change settings .
Sometimes, Network Level Authentication (NLA) or encryption mismatches cause the 0x904 error. On the remote host, open .