Hi Joshua Polen,
This strongly suggests a TCP path asymmetry or stale NAT translation at the client-side router, or more likely, Azure’s load balancer/NAT gateway layer associated with that specific VM’s public IP.
When a VM is assigned a public IP, Azure maps incoming connections to the private IP of the VM behind the scenes. Occasionally, due to:
TCP session mishandling
Idle timeouts on NAT tables
Imbalanced routing table updates
Azure or the client’s upstream router may hold onto a stale or half-open connection state that prevents new connections to that exact destination (IP:port) combo.
Immediate Mitigations here are some things you can try right now, which often work around the issue:
Restart the VM
This often clears stale mappings or Azure-side NAT paths.
Can also re-register with Azure's load balancer, especially if a public IP is involved.
Force a new public IP
Disassociate and reassign the public IP (or allocate a new one). This will change the routing path and often resolves the issue.
Try changing the RDP port
Changing the RDP port on the affected VM (even temporarily) forces a new NAT mapping.
This is useful if the source IP has a blocked or stuck port mapping.
Change the source IP
From the student’s machine, connect via a VPN or hotspot to get a different source IP.
This has worked in similar cases and confirms that NAT pathing is at fault.
Please refer the below documents:
https://learn.microsoft.com/en-us/azure/devtest-labs/configure-lab-remote-desktop-gateway
If you found information helpful, please click "Upvote" on the post to let us know.
If you have any further queries feel free to ask us we are happy to assist you.
Thank You.