on-internet
← Community

How to get Public IP address of Android device programmatically?

Stack Overflow ·

I want to retrieve publick IP Address, the address that we get for example from whatismyipaddress.com and I don't want to use any third party servcie https://www.ipify.org. Is there any way to fetch this IP address from inbuilt classes or library in Android. If not possible to get the required data from Android libraries, please suggest any logic to get the same in server level instead of fetching in client level. Note: Loadbalancer is present before routing to actual web-application

Comments

Sign in or sign up to comment and upvote.

No comments yet.