Connection Problem After Amazon EC2 Micro Instance Reboot

Let's say you have set up an EC2 micro instance on AWS. You have set up your IIS, Database, Application and everything, and finally you got your first web site up and running on this instance.

For some reason you needed to restart your instance and after a simple reboot using EC2 Management Console you see that your web site no longer responds & you can not RDP to your instance.

Do you know why this is happening? This is happening because once your instance restarts, it gets a new IP!

To check this, login to EC2 Management Console, click “Running Instances”, then click the instance whose IP you wanna check.

You will see the public DNS info as below:

Here 54.245.49.92 is the new IP of your AWS instance. For your website to work, you should update the zone file of your domain name (update the A Record) -using the administration tools of your domain registerer- with this new IP so that the requests to your website will be directed to this IP.

Also to be able to RDP to this new public DNS, right-click on your instance name in the list of running instances and click “Connect”. A window like below will open:

Click “Download shortcut file” and save the shortcut. Now you can double-click this shortcut to RDP to your instance.

In order to prevent this from ever happening you must allocate an EIP (Elastic IP) and associate this EIP with your instance!

Hope this helps someone.

Good luck,
Serdar.

3 thoughts on “Connection Problem After Amazon EC2 Micro Instance Reboot

  1. hey there and thank you for your information – I have certainly
    picked up anything new from right here. I did however expertise some
    technical points using this site, since I experienced to reload
    the site a lot of times previous to I could get it to load correctly.

    I had been wondering if your web hosting is OK? Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and can damage your
    quality score if ads and marketing with Adwords.
    Anyway I am adding this RSS to my email and could look
    out for a lot more of your respective fascinating content.

    Ensure that you update this again very soon.

  2. I’d lije to thank you for the effforts you have put in penning tyis blog.
    Iam hoping to check out thhe same high-grade bloog posts by you in the future as well.
    In fact, your creative writing abilities has motivated me too gget my very
    own blog now 😉

  3. I was very pleased to uncover this great site.
    I need to to thank you for your time for this particularly fantastic read!!
    I definitely liked every part of it and i also have you
    saved as a favorite to see new information in your website.

Leave a Reply

Your email address will not be published. Required fields are marked *