Seshan's Blogkeyboard_backspaceBack to Posts
Dang it AWS. Is your instance IP Changing? Get an Elastic IP!
December 6, 2018
Crisis averted, this website is still online!
Let me set the scene here. It’s the middle of the Computer Club and my friend notifies me that my website is offline…
Uh oh. I proceed to try and connect, and yep, it’s dead. I tried the direct IP and that didn’t work either. Well, it’s been a nice run of the website… Windows Server 2003 was fun. I checked the AWS panel and everything. I was pretty quick to accept the death of the site in it’s current form…
But wait! It wasn’t dead. When I got home I hopped on the AWS panel to see what was going on once more. Guess what. The public IP changed! What??? A quick Google search revealed that an AWS Instance’s Public IP will change after a restart… but why??? As it turns out you actually need to first get an Elastic IP, and associate it with the Instance. That way the instance will keep the same IP.
I’m glad I figured this out… but man this should’ve been more obvious that I need an Elastic IP to keep the instance’s public IP from changing. Hopefully this will help at least one of you 😛