import ipaddress


def address_in_range(address, net_ranges):
    """
    check if given ip address is in user network ranges
    :param address: string ip_address
    :param net_ranges: list of network ranges
    :return: boolean
    """
    result = False
    for adr_range in net_ranges:
        try:
            result = result or ipaddress.ip_address(address) in ipaddress.ip_network(adr_range)
        except ValueError:
            return False

    return result