Search code examples
windowsamazon-web-servicesamazon-ec2rdp

Remote desktop to Windows instance not working -AWS EC2 Free Tier


I am new to AWS and started setting up a EC2 instance. I have setup a Windows instance with VPC and security groups in place.

But when I am trying to connect that instance via RDP, it gives an error :

Remote Desktop can’t connect to the remote computer for one of these reasons:

1) Remote access to the server is not enabled

2) The remote computer is turned off

3) The remote computer is not available on the network. Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.


Solution

  • Common things to check when connecting to an Amazon EC2 instance:

    • Confirm that the instance is listening on the desired port -- I have seen people launch a Linux instance, then try to RDP into it
    • Confirm that the Security Group is permitting inbound access for RDP (port 3389) from 0.0.0.0/0 or (preferably) your specific IP address (with /32 appended to the end)
    • Confirm that the instance is running in a Public Subnet (which means that Route Table is configured to use the Internet Gateway). If you are using a Default VPC, then this will have been configured for you.
    • Confirm that you are connecting via a Public IP Address that is currently associated with the instance