Question

How can i access rest api deployed in droplet with ip address in android application

Posted May 28, 2021 74 views
Solutions

I am creating a mobile application. I have deployed spring boot rest service in digital ocean.
How I can access those api ,in my android application.
Please suggest me good architecture for calling rest service from mobile application with ip address

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there,

The implementation itself would quite depend on the technology stack that you are using. Do you get any specific errors when you try to call the IP address directly?

If you are getting an SSL certificate warning, you could try adding a domain name with a free Let’s Encrypt SSL certificate so that you could make the calls via HTTPS and not HTTP.

If you don’t have a domain name yet, you could get a free one via Freenom at:

https://www.freenom.com/

Regards,
Bobby

by Erika Heidi
Let's Encrypt is a Certificate Authority (CA) that facilitates obtaining and installing free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. Currently, the entire process of obtaining and installing a certificate is fully automated on both Apache and Nginx with the use of Certbot. In this guide, we'll use Certbot to obtain a free SSL certificate for Apache on Ubuntu 20.04, and make sure this certificate is set up to renew automatically.