Remote Desktop cannot connect to the remote computer for one of the following reasons.

Suriel Angel Carrasco Rodríguez 45 Reputation points
2023-05-31T16:58:39.1166667+00:00

Hello World! I currently have a Windows 10 Virtual Machine which had been working normally, but recently had the problem of not allowing remote file connection.

I have already restored a backup before it started failing, but the problem persists.

Here I leave the configured rules hoping you can support me. THANK YOU

AZ

AZ2

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
578 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,178 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,260 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 35,591 Reputation points Microsoft Employee
    2023-06-01T03:50:49.24+00:00

    @Suriel Angel Carrasco Rodríguez

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you are unable to RDP to a VM in Azure.

    I am uploading a English translated image of the Screenshot you have posted.

    User's image

    The NSG looks good.

    • Can you make sure the if the NSG rules attached to the NIC/subnet also allow RDP.
    • Which method were you using?
      • Using the IP of the VM
      • or Using the IP of a Load Balancer where the VM is a backend pool
      • or Using an Azure Firewall's IP and DNAT
    • Make sure you are RDPing to the correct Public IP of the VM
      • Make sure the Public IP is attached to the targetVM
      • Navigate to the VM and to the NIC from Networking blade
      • And make sure an IP is allocated to the NIC
      • Please share the output (you can redact the Public IP)
    • Are you able to RDP from a different VM in the same subnet/Vnet using the private IP of the targetVM?
    • Refer : Azure VM cannot connect to another Azure VM in same virtual network
    • Run PsPing from the testVM to private IP and from your local machine to the public IP of the VM.
      • Download Psping
      • From local machine, open CMD as admin and navigate to the folder containing psping
      • Run, psping <Public IP of the VM>:3389
      • From the testVM, open CMD as admin and navigate to the folder containing psping
      • Run, psping <Private IP of the VM>:3389
      • And share the output of the above two
    • Use IP Flow Verify to check if traffic is allowed or not

    Cheers,

    Kapil

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful