Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The java.net.InetAddress
class is Java’s high-level representation of an
IP address, both IPv4 and IPv6. It is used by most of the
other networking classes, including Socket, ServerSocket, URL, DatagramSocket, DatagramPacket, and more. Generally, it
includes both a hostname and an IP address.
public class InetAddress extends Object implements Serializable