- 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.
- localAddr
- the local host address the socket is bound to.
- localPort
- the port number of the local host at which the socket is bound.
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 parameters host and port. The socket is bound to the local network interface specified by the InetAddress localHost on port localPort.
This method verifies the peer's certificate hostname after connecting (unless created with SSLCertificateSocketFactory.GetInsecure(int, Android.Net.SSLSessionCache)).