This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

AddrInRange()

Deprecated in 5.0.

Please use inRange() or contains() methods of InetAddress class.

AddrInRange(address, start, end): bool

Check if IP address is within given range. IPv4 and IPv6 are supported.

Table 1. Parameters

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