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.

Comments

10
    TG
    Tarak Gorai Jun 3, 2020

    did take away the original 0x204 error but now have 0x704 error

      SW
      Shane Warren Author Jun 5, 2020

      Navigate to Control Panel>All Control Panel Items>Network and Sharing Center
      Check if your network is Private.If not, make it so by:
      Start >Settings >Network & Internet.
      Select your network and click Advanced Options
      change the slider for ‘Find Devices and Content’ to On.
      This will place your PC into a private network
      allowing sharingRDP rule to match.

    NJ
    Nikki Jackson Jan 6, 2021

    No folder came up when I typed in Group Containers. Now what?

      MZ
      Muhammad Zubyan Author Jan 11, 2021

      Try this:-

      1. Open Finder
      2. Type “~/Library/Group Container” and check if you are able to access the folder or not.

      Keep me updated.

    MI
    MikeL Jan 28, 2021

    Two MACs with different iOS ver both connect VPN ok but one fails DRC.
    MAC using MS RDC ver10 get the error 0x204. From another mac at another location, running RDC ver8 there’s no problem using exact same credentials. I can conclude that the win pc is configured properly. the mac that does not connect is the first time trying.

      MZ
      Muhammad Zubyan Author Jan 28, 2021

      It’s possible that your Windows Firewall is blocking the connection try disabling it for testing and check if the issue still persists. Here is how you can disable it.

      1. Press and hold the “Windows + R” keys together to open the Settings app.
      2. Head over to “Update & Security > Windows Security > Firewall & Network Protection”
      3. Now make sure to set all these settings to off click all the settings one by one and set them to off.
      4. Please revert them back to on after checking as it can cause serious security issues.

    WB
    Walter Blanc Mar 24, 2021

    Hi Kevin
    Thanks for your help.
    I tried all the tricks and still does not work.
    I can connect my Mac to my PC as far as they are connect to the SAME wifi network but I get the 104 or 204 error code as soon as I try to connect from another network… Any clues ?
    Thanks
    Walter

      MZ
      Muhammad Zubyan Author Mar 24, 2021

      Have you tried checking your Windows Firewall settings? If not here is what you can try:-

      1. Press and hold the “Windows + R” keys together to open the Settings app.
      2. Head over to “Update & Security > Windows Security > Firewall & Network Protection”
      3. Now make sure to set all these settings to off click all the settings one by one and set them to off.
      4. Please revert them back to on after checking as it can cause serious security issues.

        WA
        Walt Mar 24, 2021

        Thanks Zubyan for your answers. I forgot to mention that I run Win7 on my (old) PC. I tried everything from disconnecting totally the firewalls or allowing all connections. Nothing works…

          MZ
          Muhammad Zubyan Author Mar 24, 2021

          Okay, so there are some things that you can try to fix this issue first of all you will have to forward a port from your router’s setting and from your computer.

          1. Search for Command Prompt from Start Menu and run it as an administrator.
          2. Check your default gateway, copy it, and then use your browser to access that address.
          3. Once you are in your router settings it should ask for a password and username. (Check your router’s backside for username and password). If that doesn’t work you will have to contact your ISP to help you.
          4. Once you are inside your router settings find the section for Port forwarding and forward the following port:- 3389

          Once the port is forwarded you will have to enable UPnP on your Windows here is an article on how to do it:- https://appuals.com/how-to-enable-upnp-universal-plug-n-play/

          Let me know how it goes!