Object that contains all information about network address
address ⇒ String
-
IP address
family ⇒ String
-
Internet address, one of:
-
inet
-
inet6
-
unspec
-
isAnyLocal ⇒ Boolean
-
TRUE
if address is a wildcard address isBroadcast ⇒ Boolean
-
TRUE
if address is a broadcast address isLinkLocal ⇒ Boolean
-
TRUE
if address is a link local address isLoopback ⇒ Boolean
-
TRUE
if address is a loopback address isMulticast ⇒ Boolean
-
TRUE
if address is a multicast address isSubnetBase ⇒ Boolean
-
TRUE
if address is a subnet base address isSubnetBroadcast ⇒ Boolean
-
TRUE
if address is a subnet broadcast address isValid ⇒ Boolean
-
TRUE
if address valid isValidUnicast ⇒ Boolean
-
TRUE
if address valid unicast mask ⇒ Integer
-
Address bit mask
subnet ⇒ InetAddress
-
Subnet base address
contains(address) ⇒ void
-
If subnet contains internet address
address |
Address to check for |
TRUE
if contains, otherwise FALSE
r = InetAddress("192.168.56.0", 24).contains($node.ipAddress); println(r); // will print "true", if primary IP address of node is in that subnet
equals(address) ⇒ void
-
If addresses are equal
address |
Address to check to |
TRUE
if addresses are equal, otherwise FALSE
inRange(addressStart, addressEnd) ⇒ void
-
If address is in range
r = $node.ipAddress.inRange(InetAddress("192.168.56.10"), InetAddress("192.168.56.20")); println(r); // will print "true", if primary IP address of node is in range
addressStart |
Start of the range address |
|
addressEnd |
End of the range address |
TRUE
if adresse is in range, otherwise FALSE
sameSubnet(address) ⇒ void
-
If adresses are in the same subnet (using mask bits from this InetAddress)
address |
IP address |
TRUE
if adresses are in the same subnet, otherwise FALSE