Java java.net InetAddress fields, constructors, methods, implement or subclass

Example usage for Java java.net InetAddress fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.net InetAddress.

The text is from its open source code.

Method

booleanequals(Object obj)
Compares this object against the specified object.
byte[]getAddress()
Returns the raw IP address of this InetAddress object.
InetAddress[]getAllByName(String host)
Given the name of a host, returns an array of its IP addresses, based on the configured name service on the system.
InetAddressgetByAddress(byte[] addr)
Returns an InetAddress object given the raw IP address .
InetAddressgetByAddress(String host, byte[] addr)
Creates an InetAddress based on the provided host name and IP address.
InetAddressgetByName(String host)
Determines the IP address of a host, given the host's name.
StringgetCanonicalHostName()
Gets the fully qualified domain name for this IP address.
ClassgetClass()
Returns the runtime class of this Object .
StringgetHostAddress()
Returns the IP address string in textual presentation.
StringgetHostName()
Gets the host name for this IP address.
InetAddressgetLocalHost()
Returns the address of the local host.
InetAddressgetLoopbackAddress()
Returns the loopback address.
inthashCode()
Returns a hashcode for this IP address.
booleanisAnyLocalAddress()
Utility routine to check if the InetAddress is a wildcard address.
booleanisLinkLocalAddress()
Utility routine to check if the InetAddress is an link local address.
booleanisLoopbackAddress()
Utility routine to check if the InetAddress is a loopback address.
booleanisMCGlobal()
Utility routine to check if the multicast address has global scope.
booleanisMCLinkLocal()
Utility routine to check if the multicast address has link scope.
booleanisMCNodeLocal()
Utility routine to check if the multicast address has node scope.
booleanisMCOrgLocal()
Utility routine to check if the multicast address has organization scope.
booleanisMCSiteLocal()
Utility routine to check if the multicast address has site scope.
booleanisMulticastAddress()
Utility routine to check if the InetAddress is an IP multicast address.
booleanisReachable(int timeout)
Test whether that address is reachable.
booleanisReachable(NetworkInterface netif, int ttl, int timeout)
Test whether that address is reachable.
booleanisSiteLocalAddress()
Utility routine to check if the InetAddress is a site local address.
StringtoString()
Converts this IP address to a String .