Hello @Khadija Hajjati
Remote Desktop connections can fail if the server is offline, if firewall rules are blocking RDP traffic, or if TCP port 3389 is closed. These conditions prevent the client from establishing a session.
Recommended Steps:
Verify the server is powered on and reachable on the network.
Check firewall settings to ensure inbound RDP traffic (TCP 3389) is allowed.
Confirm the Remote Desktop Services role is running on the server.
Test connectivity with telnet <server> 3389 or Test-NetConnection -ComputerName <server> -Port 3389 to validate port availability.
Helpful references.
- Allow RDP connections in Windows Firewall (learn.microsoft.com in Bing)
- Troubleshoot Remote Desktop Services in Windows Server (learn.microsoft.com in Bing)
- Test-NetConnection PowerShell command (learn.microsoft.com in Bing)
If this information was helpful, please click Accept Answer. Doing so helps other community members identify useful solutions to similar issues.
Thank you for choosing Microsoft Q&A!