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:
If these are fine and you still see Error 0x204, let's look at the 5 proven solutions to get you back online.
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:
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.
Enable-NetFirewallRule -DisplayGroup "Remote Desktop".services.msc, open Remote Desktop Services, and select Restart.ipconfig on 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.| 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. |
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).
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.
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.
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.
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.
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.
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.
Unlike Microsoft Remote Desktop, which requires a perfect network "alignment," AnyViewer is built for ease of use:
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.
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.