I have an int which contains an IP address in network byte order, which I would like to convert to an InetAddress object. I see that there is an <
int
InetAddress
Using Google Guava:
byte[] bytes =Ints.toByteArray(ipAddress);
InetAddress address = InetAddress.getByAddress(bytes);