Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
I am working on a network monitoring app in kotlin, android. I need the ISP name for my network.
Thanks.

What I have tried:

I have searched through developers.android.com but cannot find anything that gives me the correct answer can you help me.
Posted
Updated 31-Aug-22 4:09am
Comments
Richard MacCutchan 31-Aug-22 9:07am    
It is most likely only available in the router; take a look in the router's configuration system.

1 solution

You're not going to find anything to give you the ISP information in any SDK.

You need to be able to get your outside IP address, which you cannot do from your client without a server. Once you have that address, you need to look that address up in a WHOIS service, which will return a a block of data you need to parse to get the Organization that owns the address. There's your ISP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900