jinzigui / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

How to obtain IP address of host device #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Is there any method in IMSDroid I can use to obtain the host device's IP 
address?

What version of the product are you using? On what operating system?
IMSDroid/v1.2.353 (doubango r539) on Windows7

Original issue reported on code.google.com by kow...@gmail.com on 3 Feb 2011 at 10:27

GoogleCodeExporter commented 9 years ago
boolean ipv6 = false;
String ipv4LocalIP = ServiceManager.getNetworkService().getLocalIP(ipv6);

Original comment by boss...@yahoo.fr on 3 Feb 2011 at 10:56

GoogleCodeExporter commented 9 years ago
It worked. Thank you

Original comment by kow...@gmail.com on 3 Feb 2011 at 12:12

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 6 Feb 2011 at 6:52