I realized that the external IP of my VM instance changed to an IP that I don't know. Also, next to the external IP it says "(ephemeral)".

What could cause this to change? How do I prevent that in the future?

  • 2
    As far as fixing the immediate problem, change the DNS entry? You probably want to set the TTL to something low while you're at it so you can recover easily the next time (until you fix the underlying issue). – Xiong Chiamiov Nov 29 '17 at 17:41

Instances are automatically given an IP address, which is subject to change if the server is restarted, crashes, etc. If you want it to have a fixed IP, you need to provision one.

Chances are you've lost the original IP - it'll be back into the pool of millions of IP addresses for someone else's instance to use. You'll need to change the IP in your DNS records to the new static one.


In addition to ceejayoz's answer, it should be noted that you can promote an ephemeral IP to a static IP without it changing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.