Utility routine to check if the InetAddress is a
IP multicast address. IP multicast address is a Class D
address i.e first four bits of the address are 1110.
Returns the fully qualified host name for this address.
If the host is equal to null, then this address refers to any
of the local machine's available network addresses.
Returns the raw IP address of this InetAddress
object. The result is in network byte order: the highest order
byte of the address is in getAddress()[0].
Compares this object against the specified object.
The result is true if and only if the argument is
not null and it represents the same IP address as
this object.
Two instances of InetAddress represent the same IP
address if the length of the byte arrays returned by
getAddress is the same for both, and each of the
array components is the same for the byte arrays.
Parameters:
obj - the object to compare against.
Returns:
true if the objects are the same;
false otherwise.
Determines the IP address of a host, given the host's name. The
host name can either be a machine name, such as
"java.sun.com", or a string representing its IP
address, such as "206.26.48.100".
Parameters:
host - the specified host, or null for the
local host.
Determines all the IP addresses of a host, given the host's name.
The host name can either be a machine name, such as
"java.sun.com", or a string representing
its IP address, such as "206.26.48.100".
Parameters:
host - the name of the host.
Returns:
an array of all the IP addresses for a given host name.