Share via

How to troubleshoot a 0x204 RDC error

lachlan mills 20 Reputation points
2025-12-19T14:08:34.6633333+00:00

I am trying to re-establish a working RDC from a client to a host. Both are PCs running Windows 11 Pro. The old host computer died, and I've setup a new one. I just can't get RDC to work. The client end always ends with "Error code 0x204".

A few points about my approach:

  1. The client PC searches for a DynDNS website hostname.homeip.net; The host PC uses Dyn Updater to constantly update hostname with its actual, current IP address. I've checked with dyndns.com - the updates are being made regularly and are successful. To my way of thinking, the client PC can successfully find my host's router;
  2. The host PC uses a static local IP address given to it by the router. RDC requests that come into the router are forwarded to the host's local IP address. To my way of thinking, the RDC requests are thus being made to my host PC;
  3. The host PC is setup to accept RDC connections.

The only complicating factor is that I'm not using TCP port 3389. I've configured the RDC on the host end to use the different port number, and I've told both the client and the host's router to use that same number as well.

Is there any way to see where this approach is failing? Is there some security feature on the host PC that is stopping the RDCs from working? Or is it the router that is causing the problem? Some checklist of things to try would be appreciated!

Windows for home | Windows 11 | Apps
0 comments No comments

Answer accepted by question author
  1. Anonymous
    2025-12-19T14:46:51.6733333+00:00

    I understand how important it is to get Remote Desktop working again.

    The 0x204 error usually means the client can’t reach the host over the network, which often comes down to port or firewall settings.

    Since you’re using a custom port, the default RDP rules won’t apply, so you’ll need to make sure the host’s firewall has an inbound rule for that port and that Remote Desktop is listening on it.

    Also, confirm your router is forwarding the correct external port to the host’s static IP and that DynDNS is resolving properly.

    A quick test is to try connecting from another device on the same local network using the host’s IP and custom port, if that fails, the issue is on the host; if it works, the problem is external, likely the router or ISP.

    Have you already checked if the custom port is open externally using a port checker or telnet?

    Regards,
    Aron

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-19T14:08:54.77+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To troubleshoot the 0x204 error when trying to establish a Remote Desktop Connection (RDC), consider the following steps:

    1. Verify RDP Listener Port: Since you are using a non-default port for RDP, ensure that the RDP listener on the host is configured to use that port. You can check this by running the qwinsta command in the Command Prompt on the host. Look for the rdp-tcp line and confirm that it is in the Listen state.
    2. Check Firewall Settings: Ensure that the Windows Firewall on the host PC is configured to allow incoming connections on the port you are using for RDP. You may need to create a new inbound rule for this specific port.
    3. Router Configuration: Double-check the port forwarding settings on your router. Make sure that the port you configured is correctly forwarded to the static local IP address of the host PC.
    4. Network Configuration: Verify that the host PC is reachable from the client PC. You can use the ping command to check connectivity to the host's public IP address or DynDNS hostname.
    5. Remote Desktop Settings: Ensure that the host PC is set to allow remote connections. You can check this in the System Properties under the Remote tab. Additionally, confirm that the Remote Desktop Services are running on the host.
    6. Registry Settings: Check the registry settings to ensure that the values for fEnableWinStation and fDenyTSConnections are set correctly. The fEnableWinStation should be 1, and fDenyTSConnections should be 0.
    7. Test with Default Port: If possible, temporarily change the RDP port back to the default (3389) to see if the connection works. This can help isolate whether the issue is related to the custom port configuration.

    By following these steps, you should be able to identify where the connection is failing and resolve the 0x204 error.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.