public static boolean isIpV4Address(final String hostAddress) {
    try {
      return InetAddresses.forString(hostAddress) instanceof Inet4Address;
    } catch (final IllegalArgumentException e) {
      return false;
    }
  }
Is hostAddress string an ip v4 address

@param hostAddress the host address as a string
@return true if the host address is an ip v4 address
util/src/main/java/org/hyperledger/besu/util/NetworkUtility.java