Determines if an IP address is in a specific subnet.
A string containing IPv6/IPv4 addresses.
A string containing colon delimited IP prefix with top n bits specified in the bit field (i.e. 3ffe:8311:ffff::/48 or 188.8.131.52/16).
TRUE if the host is in the same subnet; otherwise, FALSE.
Also returns FALSE if the prefix is not in the correct format or if addresses and prefixes of different types are used in the comparison (i.e. IPv4 prefix and an IPv6 address).
isInNetEx(host, "184.108.40.206/32"); true if the IP address of host matches exactly 220.127.116.11
isInNetEx(host, "18.104.22.168/16"); true if the IP address of the host matches 198.95.*.*
isInNetEx(host, "3ffe:8311:ffff::/48"); true if the IP address of the host matches 3ffe:8311:fff:*:*:*:*:*