I am wondering how to get a human readable IP Adress from DhcpInfo.ipAddress? The tricky thing about it is, that it is an integer and obviously you can\'t store an IP address in
As mentioned by other posters, an ip address is 4 bytes that can be packed in to one int. Andrey gave a nice illustration showing how. If you store it in an InetAddress object you can use ToString() to get the human readable version. Something like:
byte[] bytes = BigInteger.valueOf(ipAddress).toByteArray();
InetAddress address = InetAddress.getByAddress(bytes);
String s = address.ToString();