# NetworkList.includes() method · @imqueue/net

Source: https://imqueue.org/api/net/latest/net.networklist.includes/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/net 3.0.2 — generated reference, not hand-written

Whether an address falls inside any network in this list.

**Signature:**

```typescript
includes(ip: string): boolean;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| ip | string | a bare address, with no `/prefix` |


**Returns:**

boolean

`true` if some network contains it.

## Exceptions

TypeError if `ip` is not a valid address — an empty string included. Screen untrusted input with [isValid()](https://imqueue.org/api/net/latest/net.isvalid/) first.

## Remarks

Binary search over the sorted records, so O(log n) in the number of networks. An address of the other family returns `false` rather than throwing, which is what lets [Networks](https://imqueue.org/api/net/latest/net.networks/) ask both of its lists without checking first.

Ranges are inclusive at both ends, so a `/32` matches exactly its one address.

