Package | Description |
---|---|
java.net |
Modifier and Type | Method and Description |
---|---|
static InetAddress[] |
InetAddress.getAllByName(String host)
Determines all the hosts IP addresses, given the hostname;
|
static InetAddress |
InetAddress.getByAddress(byte[] ipAddress)
Equivalent to
getByAddress(null, ipAddress) . |
static InetAddress |
InetAddress.getByAddress(String hostName,
byte[] ipAddress)
Returns an
InetAddress corresponding to the given network-order
bytes ipAddress and scopeId . |
static InetAddress |
InetAddress.getByName(String host)
Determine the IP address, given the hostname
|
static InetAddress |
InetAddress.getLocalHost()
Returns the localhost
|
Constructor and Description |
---|
Socket(String host,
int port) |
Socket(String host,
int port,
InetAddress localAddr,
int localPort) |