- addr
- the 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
Creates a new socket which is connected to the remote host specified by the InetAddress host. The socket is bound to any available local address and port.
Warning: Hostname verification is not performed with this method. You MUST verify the server's identity after connecting the socket to avoid man-in-the-middle attacks.