How to Fix Microsoft Remote Desktop Error Code 0x204 (2026 Updated)
Facing RDP Error 0x204 on Mac or Windows 11/10? Learn 5 fast ways to fix it, from firewall settings to clearing Mac cache. Get your remote connection back in minutes!
Microsoft Remote Desktop Error Code 0x204
Imagine you’re ready to start working remotely, but suddenly blocked by a frustrating message: "We couldn't connect to the remote PC. Error code 0x204." Whether you want to access a Windows 11/10 office computer from your Mac at home or a tablet on the go, this error usually indicates a communication gap between the two devices. But don't worry—you don't need to be a network engineer to fix it.
Before diving into the technical solutions, ensure these basics are covered:
- Power: Is the remote PC turned on and not in Sleep/Hibernate mode?
- Update: Is your Microsoft Remote Desktop app running the latest version from the App Store or Microsoft Store?
- Network: Are both devices connected to the internet?
If these are fine and you still see Error 0x204, let's look at the 5 proven solutions to get you back online.
What causes RDP Error Code 0x204?
In technical terms, Error 0x204 is a "Handshake Timeout." Your device is knocking on the door, but the remote PC isn't answering. This usually happens for one of four reasons:
- Connectivity: The remote PC is turned off, asleep, or disconnected from the network.
- Permissions: Remote Desktop is disabled in Windows settings, or the user lacks authorization.
- Security Blocks: Windows Firewall or a 3rd-party antivirus is blocking Port 3389 (the RDP gateway).
- Name Resolution: Your Mac/Client cannot "find" the PC because of a DNS mismatch (common when using PC names instead of IP addresses).
- Corrupted Cache: (Mac Only) The app's temporary data has become glitched, preventing a clean connection.
5 ways to fix Microsoft RDP Error Code 0x204
To fix this error, we will first configure the Target Windows PC (the one you want to access) and then adjust the Client Device (the Mac or iPad you are using).
Solution 1. Enable Remote Desktop on Windows
Step 1. On Windows 10, press Win + R, then type “sysdm.cpl” in the entry bar and press Enter to open System Properties.
Step 2. Go to the Remote tab, and check Allow remote connection to this computer.
Solution 2. Allow Remote Desktop through Windows Firewall on Windows
Step 1. On Windows 10, open the Run box, type in “control panel” to open Control Panel.
Step 2. Navigate here: Control Panel > System and Security > Windows Defender Firewall.
Step 3. Click Allow an App or Feature Through Windows Defender Firewall.
Step 4. Select Remote Desktop and Remote Desktop (WebSocket), then hit OK.
If you use 3rd-party antivirus (like McAfee or Norton), you must manually allow Port 3389 in their specific firewall settings.
Solution 3. Connect via IP address (Bypass DNS)
DNS mismatches are a top cause of 0x204. Connecting via IP is much more stable.
Step 1. On Windows 10, open the Run box, type in “cmd” and press Enter to open Command Prompt.
Step 2. Type in “ipconfig” and press Enter, the IPv4 address is the one you need.
Step 3. On the Mac, enter the IP Address of Windows 10 instead of the PC Name in the box to achieve a remote connection.
Solution 4. Clear Remote Desktop Temp Files (Mac only)
A corrupted cache is a leading cause of 0x204 on macOS.
Step 1. Click the Finder icon, type “group containers” in the search bar, and press Enter. Be sure the search area is “This Mac”.
Step 2. Open the Group Containers folder (Path: `~/Library/Group Containers`).
Step 3. Right-click the folder named UBF8T346G9.com.microsoft.rdc and then choose Move to Trash.
Solution 5. Open port 3389 on Mac and Windows
If you are connecting over the internet (not the same Wi-Fi), you must open the RDP gateway.
Step 1. On the Mac, go to Network Utility, select Port Scan, and then Only test ports between 3389 and 3389.
Step 2. On Windows 10, search for Windows Firewall in the search box and then choose “Windows Firewall with advanced security”.
Step 3. Click on Inbound Rules and then New Rule.
Step 4. Select the Port and click Next.
Step 5. Click Specific local ports and enter port number 3389.
Step 6. Click Allow the connection.
Step 7. Select the network types you want to use, name the rule, and hit Finish.
It's worthy to mention thaterror code 0x204 may also appear on the iPad. Please check if you are using the latest version of the Microsoft Remote Desktop app. You can uninstall the app andreinstall the latest version and see if that helps in resolving the issue.
Still failing? Skip the RDP headache with AnyViewer
If you’ve tried the steps above and are still seeing Error Code 0x204, or if you find port forwarding and firewall rules too risky and complicated, it’s time for a more modern solution.
AnyViewer is a free, professional-grade remote desktop alternative designed to bypass the technical barriers that plague Microsoft RDP.
Why AnyViewer is the best alternative for Mac & Windows
Unlike Microsoft Remote Desktop, which requires a perfect network "alignment," AnyViewer is built for ease of use:
- No Port Forwarding Required: AnyViewer uses advanced technology to automatically penetrate firewalls and routers. You don't need to touch your router settings or open Port 3389.
- Work on Windows Home Edition: While Microsoft RDP is restricted to Pro and Enterprise editions, AnyViewer works flawlessly on Windows 11/10 Home, saving you the cost of an OS upgrade.
- One-Click Connection: Once logged in, you can access your remote PC with a single click—no IP addresses or PC names required.
- Security You Can Trust: It uses 256-bit ECC (Elliptic Curve Cryptography) encryption, providing a secure "tunnel" to protect your data from interception.
- Feature-Rich Free Version: Unlike RDP, AnyViewer supports high-quality image sync, file transfer, and even remote gaming for free.
How to access your Windows PC from Mac in 3 simple steps
Step 1. Download and install AnyViewer for Windows on your target PC and AnyViewer for Mac on your client device.
Step 2. Create a free account and sign in on both devices.
Step 3. Go to the "Device" tab on your Mac, select your Windows PC, and click "One-click control." That's it! No 0x204 errors, no complex configurations.
Conclusion
Microsoft Remote Desktop Error Code 0x204 is a sign that something in your network chain is broken—be it a firewall, a port, or a DNS mismatch. While the 5 solutions above can fix the issue, they require manual upkeep every time your network changes.
For a more stable, "set-and-forget" experience, we highly recommend switching to AnyViewer. It’s the fastest way to get your work done without letting error codes get in your way.