AddrInRange()
AddrInRange(address, start, end): bool-
Check if IP address is within given range. IPv4 and IPv6 are supported.
address |
String |
IP address to check. |
start |
String |
Starting IP address of a range. |
end |
String |
Ending IP address of a range. |
Return
TRUE if address is within given range (including both bounding addresses), and FALSE otherwise.
AddrInRange("10.0.0.16", "10.0.0.2", "10.0.0.44") // TRUE
AddrInRange("10.0.0.16", "192.168.1.1", "192.168.1.100") // FALSE