code: public static boolean
      isDottedQuad(String s) {
          byte[] address = Address.toByteArray(s, IPv4);
          return (address != null);
      }
docs: Determines if a string contains a valid IP address.
  
  @param s The string
  @return Whether the string contains a valid IP address