1

I am building a social networking mobile application and currently deployed the backend on AWS.

I am wondering if it is a good idea to use the IP address in the mobile application or a domain name?

What if I wish to migrate the backend to some new cloud?

Harding coding the IP address will tie me up with AWS. isn't it?

What is your experience and take on this matter?

  • 1
    Hardcoding IP addresses is almost always a bad idea, especially since it's so easy to get DNS these days. – barrycarter Jan 16 '16 at 21:32
1

A domain name is owned by you. You can take it with you when you move hosting.

The IP address is owned by your hosting company. Hosting companies sometimes force IP address changes during internal switches.

Use the domain name if you don't want to be tied to your host.

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.