- host
- the remote host this socket has to be connected to.
- port
- the remote port on which this socket has to be connected.
Type Reason Java.IO.IOException if an error occurs while connecting to the remote host.
Connects this socket to the specified remote host and port number.