sodcalculator

10 Tech How-To

Remote Desktop Error 0x204: Fixes That Work

Guide 10-52916 · Updated · Step by step

Remote Desktop error 0x204 appears when a Windows client cannot connect to a remote PC, usually due to a network, authentication, or configuration issue. The fix typically involves checking the Remote Desktop service, firewall rules, and credentials. Below is a practical guide to resolving this error on current Windows versions.

What Does Error 0x204 Mean?

Error 0x204 is a generic Remote Desktop Protocol (RDP) connection failure. It often shows as “This computer can’t connect to the remote computer” with the code 0x204. The error can stem from several root causes:

  • The remote computer is turned off or asleep.
  • Remote Desktop is not enabled on the target machine.
  • A firewall or network device is blocking port 3389.
  • The user account lacks permission or the password is wrong.
  • Network Level Authentication (NLA) is misconfigured.

Check the Basics First

Before diving into advanced fixes, verify the obvious:

  1. Confirm the remote PC is powered on and connected to the network.
  2. Make sure you have the correct IP address or hostname.
  3. Test basic connectivity with ping from the client.
  4. Ensure the Remote Desktop service is running on the target: press Win+R, type services.msc, and look for “Remote Desktop Services.” If it’s not running, right-click and start it.

If these checks pass, move on to the more specific fixes below.

Enable Remote Desktop and Check Permissions

On the remote computer, Remote Desktop must be enabled. Go to Settings > System > Remote Desktop and toggle it on. Also, confirm that your user account is in the “Remote Desktop Users” group. If you’re using a Microsoft account, the account name might differ from the display name—use the email address or the local account name.

If the remote PC runs Windows Home, Remote Desktop is not supported for inbound connections. You’ll need Windows Pro or Enterprise, or use a third-party tool.

Firewall and Network Configuration

Windows Firewall usually prompts to allow Remote Desktop when you enable it. If not, add a rule manually:

  1. Open Windows Defender Firewall with Advanced Security.
  2. Click Inbound Rules and then New Rule.
  3. Choose Port, then TCP, and enter 3389.
  4. Allow the connection and apply it to all profiles (Domain, Private, Public).

If the remote PC is behind a router, you may need to forward port 3389 to the target’s local IP. Be cautious: exposing RDP to the internet is a security risk. Use a VPN instead if possible.

Network Level Authentication (NLA) Issues

NLA requires the client to authenticate before a full RDP session is established. If the client and server have mismatched NLA settings, error 0x204 can occur. To disable NLA temporarily (for testing):

  1. On the remote PC, open System Properties (Win+Pause).
  2. Click Remote tab.
  3. Uncheck “Allow connections only from computers running Remote Desktop with Network Level Authentication.”

If that fixes the connection, re-enable NLA and update the client to the latest version. NLA is a security feature, so leaving it off is not recommended for long-term use.

DNS and Hostname Resolution

If you’re connecting by hostname, DNS may fail to resolve it. Use the IP address instead. If you must use a hostname, flush the DNS cache on the client with ipconfig /flushdns. You can also add an entry to the hosts file (C:\Windows\System32\drivers\etc\hosts) mapping the IP to the name.

For connections over the internet, you’ll need the public IP and port forwarding, but dynamic IPs can change. Consider using a dynamic DNS service.

Advanced Troubleshooting

If the error persists, try these steps:

  • Restart the Remote Desktop Services and the “Remote Desktop Services UserMode Port Redirector” services.
  • Check the Event Viewer for RDP-related logs under Applications and Services Logs > Microsoft > Windows > TerminalServices-RemoteConnectionManager.
  • Verify that the remote PC’s date and time are correct—Kerberos authentication fails with clock skew.
  • Try connecting from a different client to isolate the issue.
  • Disable IPv6 on the client if the network has issues with it.

If all else fails, temporarily disable the firewall on the remote PC (not recommended for long-term) to see if it’s the culprit.

Frequently Asked Questions

Why does error 0x204 happen only sometimes?

Intermittent 0x204 errors often point to network instability, the remote PC sleeping, or a dynamic IP change. Check the remote PC’s power settings and set it to never sleep. If using a hostname, update the DNS record.

Can I fix 0x204 by changing the RDP port?

Changing the RDP port (from 3389 to something else) can help if your ISP or router blocks the default port. You must edit the registry on the remote PC and update the firewall rule. This is an advanced step—back up the registry first.

Does error 0x204 mean my password is wrong?

Not necessarily. Wrong credentials usually produce a different error (0x207 or a login prompt failure). However, if the account has no password or is not in the Remote Desktop Users group, 0x204 can appear. Ensure the account has a password and proper permissions.

Is it safe to disable Network Level Authentication?

Disabling NLA reduces security because it allows connections before authentication. Only disable it temporarily for testing. Re-enable it as soon as possible, and ensure the client and server are updated.

What if I’m on Windows Home?

Windows Home does not support inbound Remote Desktop. You can either upgrade to Pro, use a third-party remote tool like AnyDesk or TeamViewer, or use the open-source RDP wrapper (not officially supported).

Can a VPN help with error 0x204?

Yes, a VPN can bypass problematic network configurations and port forwarding issues. Connect to the VPN on both ends, then connect to the remote PC’s internal IP. This is often more secure than exposing RDP directly.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →