Associate an Elastic IP address with your EC2 instance using AWS Console
The auto-assigned public IP address associated with your Amazon Elastic Compute Cloud (Amazon EC2) instance changes every time you stop and start the instance. You can assign a static public IP address to your Windows or Linux EC2 instance that doesn’t change when this happens.
ip address