get IP address but in xxx.xxx.xxx.xxx format in Android -


hi guys i've gone through lot of coding on line android mobiles ip address of them ending with

if (!inetaddress.isloopbackaddress())                 { return inetaddress.gethostaddress().tostring();     }  

how ever looks this:- "fe80::a00:27ff:fe37:28b5%eth1" weird cause expecting xxx.xxx.xxx.xxx

can 1 me understand whats this?

that ipv6 address. additionally, since starts fe80:: know it's link-local ipv6 address, cannot used communication beyond local network. (in case, eth1, since scope specified @ end after % - note using % identify scope isn't valid when using ipv6 address.)


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -