Important
|
Deprecated in 5.0. Please use inRange() or contains() methods of InetAddress class. |
AddrInRange(address, start, end) ⇒ Boolean
-
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.
Example
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