Unable to connect to Virtual machine suddenly via RDP through public IP

KC Partnership 0 Reputation points
2026-09-15T07:04:41.0866667+00:00

Hi Support team,

Unable to connect to Virtual machine suddenly via RDP through public IP.

it show error like this computer can;t connect to the remote computer, try connecting again. if the problem continue, contract the ownert of the remote computer or your network administrator.

I have restart the VM, ensure port 3389 are enabled, I have tried 3 to 4 different laptop and 2 different network and the problem still persisting. I have Reset configuration only, redeployment, Reset the NIC for the VM.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

4 answers

Sort by: Newest
  1. Senthil kumar 2,420 Reputation points
    2026-09-15T07:38:52.34+00:00

    Hi @KC Partnership

    Yes, Understand your concern. first need to find the root cause. so, please follow the below steps and update to us.

    1. tcpping <public-ip> 3389 execute this command. with your public ip. if no response VM is not rechable.
    2. Go to: Azure Portal → VM → Boot Diagnostics If you see: Black screen Stuck at “Starting Windows” No login screen Then the VM OS is not booting correctly.
    3. Azure Portal → VM → Serial Console If it opens, run: Reset RDP service: Code net stop termservice net start termservice Reset firewall rules: Code netsh advfirewall firewall set rule group="remote desktop" new enable=yes Re-enable RDP listener: Code reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
    4. If serial console not open your VM is stuck.
    5. Azure Portal → VM → Run Command → EnableRemoteDesktop. This runs Microsoft’s built‑in RDP repair script.

    Thanks.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Erik Moreau 2,061 Reputation points MVP Volunteer Moderator
    2026-09-15T07:19:55.0866667+00:00

    Hi KC,

    There's a known issue you might be running into with the September updates, last night an out of bands update was released to fix the RDP bug

    Remote Desktop Services might stop responding after Sept. 2026 security update Some Windows devices with Remote Desktop enabled might experience Remote Desktop Services (RDS) instability. OS Build 26100.9445 KB5124008 2026-09-08 Resolved KB5129195 2026-09-14 10:57 PT
    for Windows 11
    Remote Desktop Services might stop responding after Sept. 2026 security update Some Windows devices with Remote Desktop enabled might experience Remote Desktop Services (RDS) instability. OS Build 26100.33438 KB5122871 2026-09-08 Resolved KB5129235 2026-09-14 10:00 PT
    for Server 2025

    Was this answer helpful?

    0 comments No comments

  3. KC Partnership 0 Reputation points
    2026-09-15T07:18:18.99+00:00

    I have tried all above troubleshooting but it does not help.

    Was this answer helpful?

    0 comments No comments

  4. AI answer

    2026-09-15T07:05:08.98+00:00

    Since restart, Reset configuration only, redeploy, NIC reset, multiple laptops, and multiple networks were already tried, the next supported checks are the remaining Azure RDP troubleshooting steps:

    1. Verify Network Security Group rules again with diagnostics, not only by inspection
      • In Azure, use IP flow verify to confirm whether an NSG rule is blocking traffic to the VM.
      • Also review effective security rules on the NIC/subnet and confirm an inbound Allow rule for TCP 3389 exists and has higher priority than any deny rule.
    2. Check whether the VM is reachable on the network path
      • From a machine in the same network, run:
             Test-NetConnection -ComputerName <public-ip-or-name> -Port 3389 -InformationLevel Detailed
        
      • If TcpTestSucceeded is False, the issue is still network-path related.
      • If TcpTestSucceeded is True, focus on guest OS configuration or authentication.
    3. Review VM boot diagnostics
      • In the Azure portal, open the VM and review Boot diagnostics screenshot/logs.
      • This can reveal startup problems that block RDP even when the VM appears running.
    4. Check VM Resource Health
      • In the VM blade, open Resource health.
      • A healthy VM should show Available.
    5. Verify routing
      • Use Network Watcher Next hop or review effective routes to confirm no route is preventing traffic to or from the VM.
    6. Confirm outbound TCP 3389 is not blocked outside Azure
      • Since multiple laptops and networks were tested, this is less likely, but any on-premises firewall or local firewall still must allow outbound TCP 3389.
    7. Check guest firewall if console access is available
      • On the VM, verify Remote Desktop - User Mode (TCP-In) and Remote Desktop - User Mode (UDP-In) are enabled.
      • Elevated PowerShell:
             Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Set-NetFirewallRule -Enabled True
        
      • For testing only, firewall can be temporarily disabled:
             Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
        
      • Risk: disabling firewall reduces protection. Re-enable it after the test.
    8. Check DNS vs IP behavior and RDP port
      • If connecting by hostname fails, try the public IP directly.
      • Verify the VM is still using the default RDP port 3389. If the port was changed, connect as IP:port.
    9. Reset the VM password if credentials may be involved
      • In the Azure portal, use Reset password if there is any chance the local admin credentials are incorrect.
    10. If all checks still fail, open a support request
    • The documented guidance is to open a support request after these steps if RDP issues continue.

    A common Azure-specific cause when RDP suddenly stops through the public IP is that the VM no longer has a usable public IP association. If the Connect button is grayed out and there is no ExpressRoute or Site-to-Site VPN, assign a public IP to the VM NIC/IP configuration before using RDP.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.