HOw to get the network ip adress the device is connected?

I seached on google and stuff and its all java..

There isnt a simple way for me to find the network ip adress the device is connected?

Thanks

Posts

  • HiltonMenezesHiltonMenezes BRMember ✭✭
    edited September 2013

    I already did searched and besides java code that i never can translate i found this:

    WifiManager wifiManager = (WifiManager)context.GetSystemService(Service.WifiService);
    int ip = wifiManager.ConnectionInfo.IpAddress;
    

    But is giving me this number "536914112" i guess its the host name but i want the 192.168.X.X..

    Is there a better way to get it or a way to convert it?

Sign In or Register to comment.