- remoteAddr
- the remote host address and port number to connect to.
- timeout
- the timeout value in milliseconds.
Type Reason Java.IO.IOException if an error occurs while connecting.
Connects this socket to the remote host address and port number specified by the SocketAddress object with the given timeout. This method will block indefinitely if the timeout is set to zero.