Change of IP address linked to mobile app

0

I have an Android app connected to my AWS account that has been linked to the same IP address and instance for the past few years now. AWS underwent maintenance at the end of Feb, so I started to receive an error message on my app: "Unable to connect to XXX IP address". There seemed to be nothing wrong with the instance, it was running normally and passed both status checks, but still my app did not work, and I kept receiving the same error message. I tried to reboot the instance, it didn't work. So I stopped the instance and restarted it, but now I have a different IP address which is not linked to my app. Does anyone know how I can fix this so that the new IP address is linked to my app? Or what are my options? Thanks for your help.

posta un anno fa197 visualizzazioni
1 Risposta
0

Because a dynamic IP address was assigned to your instance, it changes every time you stop and start the instance. You can solve it, by assigning an Elastic IP Address (EIP) to your instance. This way your instance gets the same IP Address even after the reboot.

Then, you need to update the IP address in your Android app's configuration to reflect the new EIP assigned to your instance.

profile pictureAWS
con risposta un anno fa
profile pictureAWS
ESPERTO
verificato un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande