- host
- the remote host address the socket has to be connected to.
- port
- the port number of the remote host at which the socket is connected.
Documentation for this section has not yet been entered.
Type Reason Java.IO.IOException if an error occurs while creating a new socket. Java.Net.UnknownHostException if the specified host is unknown or the IP address could not be resolved.
Creates a new socket which is connected to the remote host specified by the parameters host and port. The socket is bound to any available local address and port.