There can be 3 ip's connected with the android device (only one at a time)
1. WiFi IP to which the device is connected
2. IP allocated by the mobile operator (3G Network) which is dynamically allocated to the device(Note:- it can be a static ip as well as some/most devices have this option for static ip)
3. Ethernet IP -- If your device can be run in a host mode and made to use ethernet for internet.

Note:- Above methods return IP as integers and to convert it into human(geeks ) readable form xxx.xxx.xxx.xxx, we need to convert this here is the fn that can do this:-
Function to convert integer into ip address --