Whenever possible, use a physical ethernet cable on both the client and host machines to eliminate Wi-Fi jitter.
On the machine, right-click This PC and select Properties . Click Remote settings . i remote desktop connection error code 0x904 better
Here’s a systematic plan to resolve the 0x904 error. The key is to change only one thing at a time and test your connection after each step. Whenever possible, use a physical ethernet cable on