public String ip_number_part(String ipAddress) { long f1, f2, f3, f4; String tokens[] = ipAddress.split("\."); if (tokens.length != 4) return -1+""; try { f1 = Long.parseLong(tokens[0])