How to Fix Remote Desktop Error Code 0x204 on Windows and MacOS?

The Remote Desktop Error Code 0x204 on Windows or macOS means the system can’t connect to the remote device, often without specifying the problem. This error usually indicates that the client couldn’t reach the remote PC, typically due to misconfigurations or network issues. The most common cause is a firewall blocking the Remote Desktop Protocol (RDP) port (TCP 3389) or network connectivity problems.

Desktop Error Code 0x204

Additionally, the error might occur due to a version mismatch between the Remote Desktop client and server or if the server is restarting.

Now that you know the causes lets discuss the solutions.

1. Enable the Remote Desktop Protocol (on the Windows Machine)

If the Remote Desktop Protocol (RDP) is not enabled on the host machine, it will block remote connection attempts. Enabling RDP allows the machine to accept remote connections, resolving a common cause of the error. This step opens communication between your device and the remote system, letting the session proceed without security blocks or misconfigurations.

  1. Press Windows key + R to open a Run dialog box. Type ‘SystemPropertiesRemote.exe’ and press Enter to open the System Properties screen.
    System Properties remote

    Note: If prompted by UAC (User Account Control), click Yes to grant administrative privileges.

  2. In the System Properties screen, check the Remote tab and change the toggle to Allow remote connections to this computer.
    Allowing communications using the Remote Desktop protocol

    Note: If connecting from a different network, uncheck the box associated with ‘Allow connections only from computers running Remote Desktop with Network Level Authentication‘.

    Allow communications using the Remote Desktop protocol
  3. Click Apply to save changes and attempt to connect using the Remote Desktop protocol again to see if the issue is resolved.

If the issue persists, move on to the next potential fix below.

2. Allow Remote Desktop through Windows Firewall

Allowing Remote Desktop through Windows Firewall ensures that the necessary port is open for RDP connections. Without enabling this access, the firewall could block the traffic needed for Remote Desktop, preventing the connection from being established. This step is crucial to bypass firewall settings that might hinder authorized access.

  1. Press Windows key + R to open a Run dialog box. Type ‘firewall.cpl’ and press Enter to open the Windows Firewall settings menu.
    Run dialog: firewall.cpl
    Run dialog: firewall.cpl

    Note: If prompted by UAC (User Account Control), click Yes to grant administrative privileges.

  2. In the Windows Defender Firewall settings, click Allow an app or feature through Windows Defender Firewall from the left-hand menu.
    Click on Allow an app or feature through Windows Defender Firewall
    Click on Allow an app or feature through Windows Defender Firewall
  3. In the Allowed apps window, click Change settings (top-right) to modify the list of allowed apps.
  4. Scroll down and enable the Private & Public box for Remote Desktop.
    Allowing the Remote Desktop Protocol in Windows Firewall
  5. Do the same for Remote Desktop (WebSocket) and click OK to save the changes.
  6. Restart your Windows machine and try connecting using the Remote Desktop protocol after the next startup sequence.

3. Disable Third-Party Antivirus (if applicable)

Some users experience this issue with third-party security suites like McAfee Internet Security, which might mistakenly block the Remote Desktop port as a security threat. If this is the case, try disabling the real-time protection of your antivirus suite. The steps for doing this can vary depending on the antivirus program you are using.

  1. Right-click the antivirus icon in the taskbar and look for an option to disable real-time protection.
Disabling all of Avast’s shields

You can check our detailed guide for different antiviruses here.

4. Uninstall Third-Party Firewall (if applicable)

Deleting a third-party firewall might not fully resolve the issue, as the security suite could still be active. If the firewall is causing the problem, setting up a whitelisting rule to exclude Remote Desktop from its analysis is necessary.

  1. Press Windows key + R to open a Run dialog box. Type ‘appwiz.cpl’ and press Enter to open the Programs and Features menu.
    Type appwiz.cpl and Press Enter To Open Installed Programs Page
  2. In the Programs and Features menu, scroll through the list, find your third-party firewall entry, right-click, and select Uninstall.
    Uninstalling Avast Firewall
  3. Follow the prompts to complete the uninstallation, then restart your computer.
  4. After restarting, completely uninstall the program to ensure no leftover files remain that might cause the issue.
  5. Once you’ve removed your third-party firewall, try reconnecting using the Remote Desktop protocol to see if Error Code 0x204 is resolved.

5. Use the Remote Assistance Invitation

By creating a Remote Assistance invitation, you bypass potential blocks interfering with the Remote Desktop connection. This method uses a different protocol, avoiding network issues, firewall settings, or blocked ports often linked to Error Code 0x204. It allows the client and host to communicate through an alternate route, ensuring a secure and direct connection without relying on problematic network configurations.

  1. Press Windows key + R to open a Run dialog box. Type ‘msra.exe’ and press Enter to open the Windows Remote Assistance wizard.
    Accessing the Windows Remote Assistance utility

    Note: If prompted by UAC (User Account Control), click Yes to grant administrative privileges.

  2. In the Windows Remote Assistant wizard, click Invite someone you trust to help you.
    Invite someone you trust to help you
  3. On the next screen, click Save this invitation as a file.
    Save this invitation as a file

    Note: You can select a different option if easier, such as attaching the invitation with an email program or using Easy Connect.

  4. Open the invitation on the machine you’re having trouble connecting with and see if the problem is resolved. Once opened, necessary ports should open, and Error Code 0x204 should no longer occur.

If the problem persists, proceed to the next potential fix.

6. Remove the Temp Folder for Remote Desktop (MAC Only)

If you’re facing it only on macOS, the temp folder used by the Mac Remote Desktop app may have corrupted files blocking the connection. These files can hinder how the app connects to remote servers, causing errors like 0x204. Deleting the temp folder allows the app to create new configuration data the next time it runs, removing the chance of stale or faulty data causing connection problems.

  1. Close the Remote Desktop program on your Mac.
  2. Click the Finder icon (bottom-left corner).
    Opening the Finder App
  3. Search for ‘group containers‘ in Finder, then press Return.
    Finding the Group Containers folder
  4. Delete the UBF8T346G9.com.microsoft.rdc entry by right-clicking and selecting Move to bin.
  5. Restart your Mac and see if the issue is resolved upon startup.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.