An internet address.
This object holds an internet address. If this internet address
is the result of a DNS lookup, the address also holds the hostname
used to make the lookup.
An Internet address combined with a port number represents an
endpoint to which a socket can connect or a listening socket can
bind.
Static Properties
-
InternetAddress
LOOPBACK_IP_V4
-
read-only
IP version 4 loopback address. Use this address when listening on
or connecting to the loopback adapter using IP version 4 (IPv4).
-
InternetAddress
LOOPBACK_IP_V6
-
read-only
IP version 6 loopback address. Use this address when listening on
or connecting to the loopback adapter using IP version 6 (IPv6).
-
InternetAddress
ANY_IP_V4
-
read-only
IP version 4 any address. Use this address when listening on
all adapters IP addresses using IP version 4 (IPv4).
-
InternetAddress
ANY_IP_V6
-
read-only
IP version 6 any address. Use this address when listening on
all adapters IP addresses using IP version 6 (IPv6).
Properties
-
InternetAddressType
type
-
read / write
The type of the InternetAddress specified what IP protocol.
-
String
address
-
read-only
The numeric address of the host. For IPv4 addresses this is using
the dotted-decimal notation. For IPv6 it is using the
hexadecimal representation.
-
String
host
-
read-only
The host used to lookup the address. If there is no host
associated with the address this returns the numeric address.
-
List<int>
rawAddress
-
read-only
Get the raw address of this [InternetAddress]. The result is either a
4 or 16 byte long list. The returned list is a copy, making it possible
to change the list without modifying the [InternetAddress].
-
bool
isLoopback
-
read-only
Returns true if the [InternetAddress] is a loopback address.
-
bool
isLinkLocal
-
read-only
Returns true if the [InternetAddress]s scope is a link-local.
-
bool
isMulticast
-
read-only
Returns true if the [InternetAddress]s scope is multicast.