Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 813 Bytes

addrinrange.adoc

File metadata and controls

35 lines (27 loc) · 813 Bytes

AddrInRange()

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.

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.

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