- Newest
- Most votes
- Most comments
There are several potential reasons why you might be unable to connect to your Windows Server instance through Remote Desktop. Here are some troubleshooting steps you can take:
- Security Group Configuration:
- Verify that your security group has an inbound rule allowing traffic on port 3389 (RDP) from your IP address or the necessary source.
- Network Configuration:
- Ensure your EC2 instance is in a public subnet with an internet gateway attached.
- Check that the route table for the subnet has a route for 0.0.0.0/0 pointing to the Internet Gateway.
- Verify that Network ACLs (NACLs) allow both inbound traffic on port 3389 and outbound traffic on ephemeral ports (1024-65535).
- Instance Connectivity:
- Confirm your instance has a public IP address.
- If you stopped and started the instance, note that the public IP may have changed.
- Windows Configuration:
- The Windows Firewall might be blocking RDP connections.
- Verify that the Remote Desktop Service (TermService) is running and set to Automatic startup.
- There might be issues with graphics drivers causing RDP sessions to freeze or display a black/blue screen.
- Authentication:
- Ensure you're using the correct username (typically "Administrator") and password.
- If you changed the administrator password after initial setup, the password retrieved from the .pem file will no longer work.
- Alternative Access Methods:
- Try using AWS Systems Manager to troubleshoot RDP issues. AWS provides an automation document called AWSSupport-TroubleshootRDP that can check or modify common settings affecting RDP connections.
- Consider using Session Manager as an alternative way to access your instance if it has the SSM agent installed.
- Resource Constraints:
- If using a smaller instance type, it might be experiencing performance issues due to resource limitations, especially after periods of inactivity.
If the issue persists, you might need to stop and start the instance (not just reboot) or create a new instance from a fresh AMI.
Sources
Troubleshoot issues connecting to your Amazon EC2 Windows instance - Amazon Elastic Compute Cloud
RDP can't connect to running ec2 G instance | AWS re:Post
Impossible to connect to ec2 windows instance | AWS re:Post
Windows Server 2025 - RDP Login Freezes | AWS re:Post
Free EC2 doesn't work | AWS re:Post
Hi, any ways you could share more information ? First of all, maybe ask yourself if your EC2 is in a public subnet and has a public IP. Then, if that's the case, things to check would be if your VPC has any NACLs restricting traffic. If your VPC was created by default, there should be no issues there. After that, you should check if you have allowed traffic on the security group(s) attached to your EC2 instance -> inbound traffic on port 3389...
There could be a lot more things to consider, but without more information on the issue you have, it's difficult to give more recommendations
If your instance is in a private VPC subnet / has restricted access from the internet, you might want to look at port forwarding with SSM: https://aws.amazon.com/blogs/aws/new-port-forwarding-using-aws-system-manager-sessions-manager/
answered a year ago
Relevant content
asked 3 years ago
asked 2 years ago
asked 3 years ago
