Creates a socket address from a hostname and a port number.
Creates a socket address from a hostname and a port number.
This method will attempt to resolve the hostname; if this fails, the returned socket address will be unresolved.
Creates a socket address from a hostname, with an ephemeral port.
Creates a socket address from a hostname, with an ephemeral port.
This method will attempt to resolve the hostname; if this fails, the returned socket address will be unresolved.
Creates a resolved socket address from a hostname, with an ephemeral port.
Creates a resolved socket address from a hostname, with an ephemeral port.
If the hostname cannot be resolved, fails with UnknownHostException
.
Creates a resolved socket address from a hostname and port number.
Creates a resolved socket address from a hostname and port number.
If the hostname cannot be resolved, fails with UnknownHostException
.
Creates a socket address from an IP address and a port number.
Creates a socket address from an IP address, with an ephemeral port.
Creates a socket address for localhost using the specified port.
Creates an unresolved socket address from a hostname and a port number.
Creates an unresolved socket address from a hostname and a port number.
No attempt will be made to resolve the hostname into an InetAddress
. The socket address will be flagged as
unresolved.
Creates an unresolved socket address from a hostname using an ephemeral port.
Creates an unresolved socket address from a hostname using an ephemeral port.
No attempt will be made to resolve the hostname into an InetAddress
. The socket address will be flagged as
unresolved.
Creates a socket address where the IP address is the wildcard address and the port number a specified value.
Creates a socket address where the IP address is the wildcard address and the port number a specified value.
The socket address will be resolved.
Creates a socket address where the IP address is the wildcard address and the port is ephemeral.
Creates a socket address where the IP address is the wildcard address and the port is ephemeral.
The socket address will be resolved.