class NetworkExt {

    public static String toIPv4(long addressLong) {
        return Long.toString(addressLong >> 24 & 0xFF) + '.' +
                Long.toString(addressLong >> 16 & 0xFF) + '.' +
                Long.toString(addressLong >> 8 & 0xFF) + '.' +
                Long.toString(addressLong & 0xFF);
    }

}