- Newest
- Most votes
- Most comments
Hello.
Did you allow your public IP address when allowing RDP in the inbound rules of your EC2 instance's security group?
Also, is a route destined for the Internet gateway set in the route table of the subnet where EC2 is running?
If a route to the internet gateway is not configured, you will not be able to make an RDP connection using EC2's public IP address, even if you change the security group settings.
https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html#subnet-types
Hello.
If you follow Below steps your RDP connection should work properly.
1. Security Group Configuration
- Edit the inbound rules of the security group associated with your EC2 instance.
- Add an RDP (port 3389) rule.
- Specify your public IP address (using a /32 mask) to limit access or allow access from anywhere 0.0.0.0/0 but this is less secure.
2. Public IP Association
- Ensure your EC2 instance has a public IP assigned. You can check this in the EC2 dashboard.
3. Route Table Configuration
- Verify that the subnet where your EC2 instance is located has a route to an Internet Gateway (IGW).
- In the VPC console, navigate to Route Tables, and ensure the subnet has a route with a destination of 0.0.0.0/0 pointing to the Internet Gateway.
4. Internet Gateway Setup
- Ensure an Internet Gateway (IGW) is attached to your VPC.
- This allows public access to instances in subnets with public IPs.
https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html#subnet-types
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-rdp.html
Hello Thanniru,
Thanks for sharing the details.
We have checked all the details are up to date, but still unable to connect RDP.
Please suggest other options where we can connect.
If you need a username and password, I will gladly share it with you.
Thanks, Kiran
Relevant content
- Accepted Answerasked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
Please refrain from sharing private details like username and password, rather, please try to identify the root cause of the issue with the answers provided.