Hello Ganguli,
Thank you for posting question on Microsoft Windows Forum!
Based on the provided error code 0x204 in Remote Desktop which usually indicates a network connectivity or firewall issue. The fact that it worked when you switched to a mobile hotspot suggests the problem is not with the remote PC itself, but with the network path between your client and the remote machine.
The possible causes for this is your original Wi-Fi network or your home/office router may have blocked Remote Desktop Protocol (RDP) traffic (port 3389). Some ISPs, office networks, or routers restrict this for security reasons. On the other hand, if your router or firewall was not forwarding the RDP port correctly, the connection would fail. Switching to a hotspot bypassed that router and gave you a direct path. Also, some Internet Service Providers (ISPs) block standard RDP ports to prevent "Man-in-the-Middle" attacks. A mobile carrier often uses different routing protocols that might bypass these specific blocks.
Another point to mention here is that if you were on a VPN or behind a proxy on the original network, it could have blocked RDP. The hotspot connection likely did not have that restriction.
In short, Mobile hotspots often provide a more “open” connection with fewer restrictions. Since the remote PC was already accessible over the internet, the hotspot allowed the RDP traffic to flow without being blocked or misrouted.
Hope the above information is helpful! If it helps you get more insight into the issue, it is appreciated to accept the answer. Should you have more questions, feel free to leave a message.