I am using ksoap2-android , and I need to get the IP address using java, so I do not need to enter it manually every time.
What do I mean by IP address, for example, if I do ipconfig using the shell:
DNS suffix for connection:
Local IPv6 address. ,,: f0 :: ed2: e3bf: 8206: 44% 13
IPv4 address. ,,,,,: 192.168.1.107 <- THIS IS ONE
Subnet Mask. ,,,,,: 255.255.255.0
Default gateway. ,,,,: 192.168.1.1
The fact is that I am developing an application for Android, and the emulator has a different type of IP than the machine.
I need to get the IP address of the machine, how to do it?
Many thanks
java android ip-address ip android-ksoap2
shadesco
source share