public static boolean isLocalhostAddress(final String ipAddress) {
    return INADDR_LOCALHOST.equals(ipAddress) || INADDR6_LOCALHOST.equals(ipAddress);
  }
Returns whether host address string is local host address.

@param ipAddress the host address as a string
@return true if the host address is a local host address
util/src/main/java/org/hyperledger/besu/util/NetworkUtility.java