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!
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.
Quick fix: Repair RDP Error 0x204 directly
Use this order before changing advanced settings. It fixes the most common host, firewall, account, and name-resolution problems without exposing your PC directly to the internet.
- Check the host edition: On the remote PC, open Settings > System > About. Windows 11/10 Pro, Enterprise, and Education can accept incoming RDP connections; Home can only act as a client.
- Enable Remote Desktop: Go to Settings > System > Remote Desktop, turn it on, and keep Network Level Authentication enabled.
- Allow the user: Under Remote Desktop users, add the account you will use. The account must have a password.
- Repair the firewall rules: Open Windows Terminal or PowerShell as administrator and run
Enable-NetFirewallRule -DisplayGroup "Remote Desktop". - Restart the RDP service: Press Win + R, enter
services.msc, open Remote Desktop Services, and select Restart. - Test by local IPv4 address: Run
ipconfigon the host, then enter its IPv4 address in Windows App or Remote Desktop Connection. If the IP works but the PC name does not, the issue is DNS/name resolution. - For access from another network: Connect through a VPN, RD Gateway, or a secure remote access solution. Avoid exposing TCP 3389 directly to the public internet.
RDP 0x204 differences by system version
| System or edition | Can host an RDP session? | What to check for 0x204 |
|---|---|---|
| Windows 11/10 Home | No | It can connect to another PC, but cannot accept built-in RDP connections. Upgrade the host edition or use an alternative remote desktop solution. |
| Windows 11/10 Pro, Enterprise, Education | Yes | Use Settings > System > Remote Desktop; confirm the account, firewall rules, network profile, and NLA compatibility. |
| Windows Server 2016-2025 | Yes | Confirm Remote Desktop is enabled, the user has sign-in rights, firewall rules are active, and RD Gateway/RDS policies are correct. |
| macOS 12 or later | Client only | Microsoft Remote Desktop has been replaced by Windows App. Update the app first; only clear legacy cache if the problem started before or during migration. |
| iOS/iPadOS 16 or later | Client only | Use the current Windows App, verify local-network permission, and recreate the saved PC entry if its hostname or gateway changed. |
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 11 or Windows 10, open Settings > System > Remote Desktop and turn on Remote Desktop. Alternatively, press Win + R, type “sysdm.cpl”, and press Enter to open the legacy System Properties dialog.
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)
On current macOS versions, Microsoft Remote Desktop has been replaced by Windows App. Update Windows App and recreate the saved PC entry first. If you migrated from the legacy client and 0x204 persists, its cached container may still be damaged.
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. Test port 3389 and secure off-network access
RDP listens on TCP port 3389 by default. First test the connection on the same private network. For access from another network, prefer a VPN or RD Gateway; directly forwarding 3389 to the public internet is not recommended.
Step 1. On a Windows client, open PowerShell and run Test-NetConnection HOST-IP -Port 3389. On macOS, open Terminal and run nc -vz HOST-IP 3389. Replace HOST-IP with the remote PC's private IPv4 address.
Step 2. If the test fails on the same private network, search for Windows Firewall on the Windows 11/10 host and choose “Windows Defender 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.
Error 0x204 can also appear on iPhone or iPad. Microsoft Remote Desktop has been replaced by Windows App on iOS/iPadOS. Update Windows App, allow Local Network access in iOS/iPadOS settings, and recreate the saved PC entry. For remote work across different networks, consider a managed remote work solution that does not require public port forwarding.
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. It supports both unattended remote access and attended remote support without asking users to expose RDP ports.
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.