I would like to get the IP addresses of different android apps which are connected to the internet. E.g. Google Play services is connected to 173.194.39.8. Or Internet app is connected to xxx.xxx.xx.x. I know that it is possible. But I am not sure how I can receive these IP addresses. How can I get them? Do I need root access? Thanks in advance.
Asked
Active
Viewed 8,932 times
-1
-
What do you mean "ip addresses of other apps"? Or do you mean something like "netstat"? – Jared Burrows Feb 16 '15 at 19:03
-
Yes, I mean something like "netstat". I would like to get the IP addresses so that I can get the domain which fits to this address. – NumberTheory Feb 16 '15 at 19:10
-
1Why not run "netstat"? http://stackoverflow.com/questions/15735379/java-write-netstat-in-cmd – Jared Burrows Feb 16 '15 at 19:14
-
http://stackoverflow.com/questions/6632314/android-progamatically-determine-list-of-apps-that-have-a-tcp-connection-open – m0skit0 Feb 16 '15 at 19:17
1 Answers
1
Why not run "netstat" via command line?
Check this question out: java write netstat in cmd.
Simply Google searches bring up similar "netstat" implementations in Java:
https://github.com/hyperic/sigar/blob/master/bindings/java/src/org/hyperic/sigar/cmd/Netstat.java
and

Community
- 1
- 1

Jared Burrows
- 54,294
- 25
- 151
- 185
-
-
What do you mean? Net Stat can get you started. I do not have an exact solution for showing individual IPs for an app. You might be able to map the PIDs with IP addresses. – Jared Burrows Feb 17 '15 at 17:08