Compares two IPv6 addresses for equality.
The other IPv6 address to compare with, which can be an Ipv6Address instance or literal value.
true if both IPv6 addresses are equal
Checks if there is a next sequential IPv6 address. This would only return false if the current address is the maximum possible value.
true if there is a next IPv6 address.
Checks if there is a previous sequential IPv6 address. This would only return false if the current address is the minimum possible value (::).
true if there is a previous IPv6 address.
Gets the hextets of the IPv6 address.
An array of eight numbers representing the hextets of the IPv6 address.
Checks if the IPv6 address is a documentation address (2001:db8::/32)
true if the IPv6 address is a documentation address
Compares if this IPv6 address is greater than another IPv6 address.
The other IPv6 address to compare with, which can be an Ipv6Address instance or literal value.
true if this IPv6 address is greater than the other IPv6 address
Compares if this IPv6 address is greater than or equal to another IPv6 address.
The other IPv6 address to compare with, which can be an Ipv6Address instance or literal value.
true if this IPv6 address is greater than or equal to the other IPv6 address
Checks if the IPv6 address is an IPv4-mapped IPv6 address (::ffff:0:0/96)
true if the IPv6 address is an IPv4-mapped address
Compares if this IPv6 address is less than another IPv6 address.
The other IPv6 address to compare with, which can be an Ipv6Address instance or literal value.
true if this IPv6 address is less than the other IPv6 address
Compares if this IPv6 address is less than or equal to another IPv6 address.
The other IPv6 address to compare with, which can be an Ipv6Address instance or literal value.
true if this IPv6 address is less than or equal to the other IPv6 address
Checks if the IPv6 address is a unique local address (fc00::/7). These are the IPv6 equivalent of RFC 1918 private addresses.
true if the IPv6 address is a unique local address
Gets the next sequential IPv6 address.
The next IPv6 address, or undefined if the current address is the maximum possible value.
Gets the previous sequential IPv6 address.
The previous IPv6 address, or undefined if the current address is the minimum possible value.
Returns the binary string representation of the IPv6 address.
The IPv6 address as a binary string with colons separating hextets.
Returns the compressed string representation of the IPv6 address. Uses :: notation for the longest run of consecutive zero hextets.
The IPv6 address as a compressed string.
Represents an IPv6 address with utility methods for manipulation and comparison.
While you can instantiate this class directly, it is recommended to use the ipv6.address shorthand method from the
ipv6namespace instead.Example: Creating addresses (prefer the shorthand)
Example: Converting between formats
Example: Comparing addresses
Example: Navigating sequential addresses
Example: Checking address types