isInNetEx()
Microsoft IPv6 extension. True if ip is inside the CIDR prefix, e.g. isInNetEx(ip, "2001:db8::/32").
isInNetEx(ip, prefix) → booleanTakes a CIDR prefix instead of a mask. Only in engines with the “Ex” extensions.
Example
if (isInNetEx(host, "2001:db8::/32")) { /* ... */ }
Engine notes
| Engine | Behaviour | Source |
|---|---|---|
| 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. | lab, verified 2026-10-11 |
Availability
| Function | chromium | chromium | firefox | pacparser | pacparser | winhttp | wininet | reference |
|---|---|---|---|---|---|---|---|---|
isInNetEx | yes | yes | no | yes | yes | yes | yes | no |