Establishes a connection to a remote device.
If you use this method with a SOCKS4 server, it will let the server resolve the hostname. Not all SOCKS4 servers support this 'remote DNS' though.
Exception Type | Condition |
---|---|
ArgumentNullException | The host parameter is a null reference (Nothing in Visual Basic). |
ArgumentException | The port parameter is invalid. |
SocketException | An operating system error occurs while accessing the Socket. |
ObjectDisposedException | The Socket has been closed. |
ProxyException | An error Occurred while talking to the proxy server. |
ProxySocket Class | Org.Mentalis.Network.ProxySocket Namespace | ProxySocket.Connect Overload List