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.

已提問 1 年前檢視次數 197 次
1 個回答
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
已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南