code: public static boolean isValidIp(String ip) {
          if (!IP_PATTERN_FULL.matcher(ip).matches()) {
              return false;
          }
          String[] ipArr = ip.split("\\.");
          for (String part : ipArr) {
              int v = Integer.parseInt(part);
              if (v < 0 || v > 255) {
                  return false;
              }
          }
          return true;
      }
docs: Check is an IP is valid.
  
  @param ip
  @return
  @since 0.9.1.1