# isInNetEx()

Source: https://findproxyforurl.net/functions/isinnetex/ · last updated 2026-10-11

`isInNetEx(ip, prefix)` → boolean

Microsoft IPv6 extension. True if ip is inside the CIDR prefix, e.g. isInNetEx(ip, "2001:db8::/32").

Takes a CIDR prefix instead of a mask. Only in engines with the "Ex" extensions.
## Example

```js
if (isInNetEx(host, "2001:db8::/32")) { /* ... */ }
```


## Engine notes

- winhttp: Works for IPv4 and IPv6 addresses with a prefix ("10.0.0.0/8", "fd00::/16"); without a prefix it is false. Host names are not looked up, so isInNetEx("localhost", "127.0.0.0/8") is false. "/0" gives false, and so does an address with leading zeros. (source: lab, verified 2026-10-11)
