private InetAddress parseAddress(String address) {
        try {
            return InetAddress.getByName(address);
        } catch (UnknownHostException e) {
            throw new IllegalArgumentException("Failed to parse address" + address, e);
        }
    }
Takes a specific IP address or a range specified using the IP/Netmask (e.g.
192.168.1.0/24 or 202.24.0.0/14).

@param ipAddress the address or range of addresses from which the request must
                 come.
web/src/main/java/org/apache/shiro/web/filter/authz/IpAddressMatcher.java