Hello,
Thank you for posting in the Microsoft community forum.
First confirm your network environment: When you try to connect from a remote location, are you connecting to the server via RDP from an external network? What kind of network connection do you configure (VPN or port forwarding)?
Pay special attention to the following aspects when troubleshooting this problem:
- Check that the router or firewall is correctly configured to allow RDP traffic from a remote location, usually port 3389.
You can run the Ping command or other test tools to test the network connectivity. If you configured an RD gateway, check its Settings again.
- Ensure that network level authentication (NLA) is not the cause of the problem. Try temporarily disabling NLA to see if the issue is resolved. You can uncheck "Only allow computer connections running remote desktops with network level authentication" in the System Properties > Remote TAB.
Reference:
Remote Desktop - Allow access to your PC from outside your network | Microsoft Learn
I hope this helps. If you have any follow-up questions, please contact us.
Best regards
Jacen