public static String convertIp(int ip) {
        return String.format("%s.%s.%s.%s", (ip >> 24) & 0x00FF,
                (ip >> 16) & 0x00FF, (ip >> 8) & 0x00FF, (ip & 0x00FF));
    }
Convert a int ip value to ipv4 string.

@param ip The ip address.
@return A ipv4 string value, format is N.N.N.N
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareUtils.java