Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Remote Desktop Error 0x204: Fixes That Work

· 5 min read · Home Tech

In this article
  1. Fix Error 0x204 in Order of Likelihood
  2. The 30-Second Check That Solves Most Cases
  3. Network and Address Causes Behind 0x204
  4. Firewall and Windows Settings That Block the Connection
  5. Certificate and Authentication Mismatches
  6. When the Client App Itself Is the Problem
  7. What Worked and What to Do Next

Error 0x204 in Microsoft Remote Desktop means the client cannot reach the remote PC at all. In most cases the connection is blocked by the network, a firewall, or Remote Desktop being switched off on the target machine, so start there before touching anything else.

Time 15 min · Steps 7 · Level Medium

Fix Error 0x204 in Order of Likelihood

  1. Confirm the remote PC is on and reachable. Ping the machine's IP address from another device on the same network. If the ping fails, the PC is asleep, off, or on a different network segment, and no client setting will fix 0x204 until that changes.
  2. Check Remote Desktop is enabled. On the Windows PC you are connecting to, open Settings > System > Remote Desktop and confirm the toggle is on. Note the PC name shown on that screen and use exactly that name in the client.
  3. Verify the port. Remote Desktop listens on TCP port 3389 by default. If an administrator changed it, the client must connect with the new port appended, for example 10.0.0.5:3390.
  4. Open the firewall rule. On the remote PC, open Windows Security > Firewall & network protection > Allow an app through firewall and confirm "Remote Desktop" is allowed on the active network type (private or domain, not just public).
  5. Match the network location. A PC whose network is set to "Public" often blocks Remote Desktop silently. Set it to Private in Settings > Network & internet > the connection's properties.
  6. Check credentials and permissions. The account you sign in with must be a member of the remote PC's Administrators or Remote Desktop Users group, and the username may need the machine prefix, such as DESKTOP-ABC\yourname.
  7. Retry over a VPN or gateway if off-site. If you are connecting from outside the LAN, connect the VPN first, then retry. If your organisation uses a Remote Desktop Gateway, enter its name in the client's gateway settings rather than connecting directly.

The 30-Second Check That Solves Most Cases

Try connecting from another device on the same Wi-Fi network as the remote PC. If that works, the PC and its firewall are fine and the problem is your route to it, which means a VPN, gateway, or wrong IP. If it also fails with 0x204, the problem sits on the remote PC itself, and the firewall and Remote Desktop toggle are the first places to look. This one test splits the search in half and saves you from fixing the wrong side.

Network and Address Causes Behind 0x204

The most common trigger is simply a wrong or stale address. A home PC's local IP can change when the router reassigns it, so an address that worked last week now points at nothing. You can confirm this by pinging the address you typed into the client: no reply means the address is dead, while a reply followed by 0x204 points at the firewall or the service instead.

Connecting from outside the home network adds another layer. A private address such as 192.168.1.x only works while you are on that same network; from elsewhere you need a VPN into the network or a gateway server. Exposing port 3389 directly to the internet is possible but is widely discouraged because the port receives constant automated probing, so prefer the VPN route.

How to Confirm the Address Is Right

On the remote PC, open a command prompt and run ipconfig. The IPv4 address under the active adapter is the address to type into the client. Compare it character by character with what the client is using, including the port if one is set. If the addresses differ, update the saved connection in the client and retry.

Firewall and Windows Settings That Block the Connection

Windows Firewall ships with a Remote Desktop rule, but it is scoped by network type, and a mismatch there produces 0x204 with no other symptom. Confirm the rule covers the network profile the PC is actually using: a PC on a "Public" profile with the rule enabled only for "Private" will refuse every connection. Switching the network to Private, or editing the rule to allow the current profile, resolves it, and a successful connection is your confirmation.

Also confirm the Remote Desktop service is running on the host. Press Win+R, type services.msc, and check that "Remote Desktop Services" shows Running. If it is stopped, start it and set its startup type to Automatic so it survives a reboot. Menu names can differ slightly between Windows versions, but the service and firewall locations have been stable for a long time.

Certificate and Authentication Mismatches

Less often, 0x204 appears because the client and server disagree on security settings. If the server requires Network Level Authentication and the client cannot complete it, or the TLS version negotiation fails, the connection drops before you see a desktop. On the host, Settings > System > Remote Desktop > Advanced settings shows the "Require computers to use Network Level Authentication" option; toggling it off temporarily is a quick way to test whether NLA is the blocker. If the connection then succeeds, update the client app before re-enabling it, since leaving NLA off weakens the host.

A corrupted saved connection can mimic all of this. Delete the saved PC entry in the Remote Desktop client and re-enter the address, username, and gateway from scratch. It takes under a minute and rules out a stale cached setting.

When the Client App Itself Is the Problem

On phones and tablets, an out-of-date Microsoft Remote Desktop app occasionally fails where a current one connects. Update the app from your device's app store, or remove and reinstall it, then re-add the connection. On a Mac, also check that the app has local network permission in System Settings > Privacy & Local Network, since a denied permission blocks discovery and direct connections. If every other device connects fine and only one fails, the client is the suspect; if all devices fail, look back at the host and network.

What Worked and What to Do Next

A fix is confirmed the moment the connection reaches the sign-in screen or the desktop instead of returning 0x204. After it works, note the PC's current IP address and consider giving the machine a static local IP or a DHCP reservation in the router so the address stops drifting, which prevents the same error returning after the next router restart. If you connect remotely often, set up the VPN or gateway properly rather than relying on a direct address, and keep NLA enabled on the host. If every step here checks out and 0x204 persists, the block is usually a corporate firewall or router rule between you and the host, and your network administrator is the right next stop.

Official source: Microsoft Support