InterfaceAddress

Class InterfaceAddress

public class InterfaceAddress
extends Object

This class represents a Network Interface address. In short it's an IP address, a subnet mask and a broadcast address when the address is an IPv4 one. An IP address and a network prefix length in the case of IPv6 address.

Since:
1.6
See Also:
NetworkInterface

Methods

getAddress

public InetAddress getAddress()

Returns an InetAddress for this address.

Returns:
the InetAddress for this address.