Java Utililty Methods IP Address Validate

List of utility methods to do IP Address Validate

Description

The list of methods to do IP Address Validate are organized into topic(s).

Method

booleanisIPv6StdAddress(final String input)
Checks whether the parameter is a valid standard (non-compressed) IPv6 address
return IPV6_STD_PATTERN.matcher(input).matches();
booleanisIpValid(final String deviceIp)
is Ip Valid
if (Strings.isNullOrEmpty(deviceIp)) {
    return false;
Matcher matcher = IP_PATTERN.matcher(deviceIp);
return matcher.matches();
booleanisIPValid(final String ipv4)
is IP Valid
java.util.regex.Matcher matcher = pattern.matcher(ipv4);
return matcher.matches();
booleanisIpValid(String ip)
is Ip Valid
return "localhost".equals(ip) || IP_PATTERN.matcher(ip).matches();