- remoteAddr
- the address and port of the remote host to connect to.
Type Reason Java.Lang.IllegalArgumentException if the given SocketAddress is invalid or not supported. Java.IO.IOException if the socket is already connected or an error occurs while connecting.
Connects this socket to the given remote host address and port specified by the SocketAddress remoteAddr.