Readonly
ipStatic
v4allrouterStatic
v4allsysStatic
v4bcastStatic
v4zeroStatic
v6interfacelocalallnodesStatic
v6linklocalallnodesStatic
v6linklocalallroutersStatic
v6loopbackStatic
v6unspecifiedStatic
v6zeroreports whether ip is an interface-local multicast address.
reports whether ip is a link-local multicast address.
reports whether ip is a link-local unicast address.
reports whether ip is a loopback address.
reports whether ip is a multicast address.
reports whether ip is a private address, according to RFC 1918 (IPv4 addresses) and RFC 4193 (IPv6 addresses).
reports whether ip is an unspecified address, either the IPv4 address "0.0.0.0" or the IPv6 address "::".
returns the string form of the IP address ip.
It returns one of 4 forms:
Static
parseparses s as an IP address, returning the result.
The string s can be in IPv4 dotted decimal ("192.0.2.1"), IPv6 ("2001:db8::68"), or IPv4-mapped IPv6 ("::ffff:192.0.2.1") form. If s is not a valid textual representation of an IP address, parse returns nil.
Static
v4Generated using TypeDoc
reports whether ip is a global unicast address.
Remarks
The identification of global unicast addresses uses address type identification as defined in RFC 1122, RFC 4632 and RFC 4291 with the exception of IPv4 directed broadcast addresses. It returns true even if ip is in IPv4 private address space or local IPv6 unicast address space.