Java.Net.InetAddress Members

The members of Java.Net.InetAddress are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
CanonicalHostNamestring. Returns the fully qualified hostname corresponding to this IP address.
[read-only]
HostAddressstring. Returns the numeric representation of this IP address (such as "127.
[read-only]
HostNamestring. Returns the host name corresponding to this IP address.
[read-only]
IsAnyLocalAddressbool. Returns whether this is the IPv6 unspecified wildcard address :: or the IPv4 "any" address, 0.0.0.0.
[read-only]
IsLinkLocalAddressbool. Returns whether this address is a link-local address or not.
[read-only]
IsLoopbackAddressbool. Returns whether this address is a loopback address or not.
[read-only]
IsMCGlobalbool. Returns whether this address is a global multicast address or not.
[read-only]
IsMCLinkLocalbool. Returns whether this address is a link-local multicast address or not.
[read-only]
IsMCNodeLocalbool. Returns whether this address is a node-local multicast address or not.
[read-only]
IsMCOrgLocalbool. Returns whether this address is a organization-local multicast address or not.
[read-only]
IsMCSiteLocalbool. Returns whether this address is a site-local multicast address or not.
[read-only]
IsMulticastAddressbool. Returns whether this address is a multicast address or not.
[read-only]
IsSiteLocalAddressbool. Returns whether this address is a site-local address or not.
[read-only]
static
LocalHostInetAddress. Returns an InetAddress for the local host if possible, or the loopback address otherwise.
[read-only]
static
LoopbackAddressInetAddress. Returns the IPv6 loopback address ::1 or the IPv4 loopback address 127.0.0.1.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetAddress() : byte[]
Returns the IP address represented by this InetAddress instance as a byte array.
static
GetAllByName(string) : InetAddress[]
Gets all IP addresses associated with the given host identified by name or literal IP address.
static
GetByAddress(byte[]) : InetAddress
Equivalent to getByAddress(null, ipAddress).
static
GetByAddress(string, byte[]) : InetAddress
Returns an InetAddress corresponding to the given network-order bytes ipAddress and scopeId.
static
GetByName(string) : InetAddress
Returns the address of a host according to the given host string name host.
IsReachable(int) : bool
Tries to reach this InetAddress.
IsReachable(NetworkInterface, int, int) : bool
Tries to reach this InetAddress.