I can no longer connect to my virtual machine using Remote Desktop

Greg Rigamer 5 Reputation points
2025-04-17T16:43:25.2133333+00:00

I was able to connect to my Azure Virtual server using Remote Desktop last week. When I try to connect to day I get an error.

[Window Title]

Remote Desktop Connection

[Content]

This computer can't connect to the remote computer.

Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator.

[^] Hide details [OK]

[Expanded Information]

Error code: 0x904

Extended error code: 0x7

Timestamp (UTC): 04/17/25 04:42:01 PM

Press Ctrl+C to copy.

Windows for business | Windows Server | User experience | Remote desktop services and terminal services
0 comments No comments

1 answer

Sort by: Most helpful
  1. Hieu Nguyen0424 85 Reputation points Independent Advisor
    2025-04-24T10:14:20.4833333+00:00

    Solution 1. Allow Remote Desktop through Firewall

    Check your firewall to confirm that it has allowed Remote Desktop on both the source and destination computers.

    Step 1. Press Win + S, then enter “Allow an app through Windows Firewall”. Click Open.

    User's image Step 2. Click Change settings and then check both Remote Desktop and Remote Desktop (WebSocket).

    User's image

    Step 3. Then click Allow another app.

    User's image

    Step 4. Click Browse, then go to C:\Windows\System32\mstsc.exe. Click Open.

    User's image

    Step 5. Then you can see Remote Desktop Connection in the list, click Add.

    User's image

    Step 6. Remote Desktop Connection will be added to the app list, tick both Private and Public boxes. Then click OK.

    User's image

    Please try connect again!

    Solution 2. Check your network/VPN connection

    Possible Causes:

    • Network Instability
    • The network connection may not have enough speed to support the remote desktop session. 
    • If you're using a VPN, it might be too slow to establish a stable connection. 
    • Your firewall might be blocking the necessary ports or interfering with the connection. 
    • Incorrect DNS settings could prevent the client from resolving the server's hostname. 
    • The Remote Desktop client application might be outdated. 

    Troubleshooting Steps:

    • Check Network Connection: Ensure both the client and server have a stable and sufficient internet connection. 
    • Verify VPN Connection: If using a VPN, ensure it's functioning correctly and has a sufficient connection speed. 
    • Update RDP Client: Make sure you have the latest version of the Remote Desktop client application. 
    • Adjust Firewall Settings: Temporarily disable your firewall to see if it's the cause of the issue. If it resolves the problem, you'll need to configure your firewall rules to allow RDP traffic. 
    • Check DNS Settings: Ensure that your DNS settings are correct and that the server's hostname can be resolved. 
    • Use IP Address Instead of Hostname: Try connecting to the server using its IP address instead of its hostname. 
    • Check for Compatibility Issues: If you're using an older version of Windows or RDP, try updating to the latest version to see if it resolves any compatibility issues. 
    • Restart Remote Desktop Services: Restarting the Remote Desktop Services on the server can sometimes resolve connection problems.

    Was this answer helpful?

    0 comments No comments

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.