SocksProxy.SocksProxy

SocksProxy(string, int)

Initializes a new instance of the SocksProxy class to connect to SOCKS4 server without authentication.

public SocksProxy(string address, int port)
ParameterTypeDescription
addressStringThe domain name or IP address of the proxy
portInt32The port number of the proxy

See Also


SocksProxy(string, int, SocksVersion)

Initializes a new instance of the SocksProxy class to connect to SOCKS4 or SOCKS5 server without authentication.

public SocksProxy(string address, int port, SocksVersion version)
ParameterTypeDescription
addressStringThe domain name or IP address of the proxy
portInt32The port number of the proxy
versionSocksVersionRequired SOCKS server version.

See Also


SocksProxy(string, int, string)

Initializes a new instance of the SocksProxy class to connect to SOCKS4 server without authentication.

public SocksProxy(string address, int port, string userID)
ParameterTypeDescription
addressStringThe domain name or IP address of the proxy
portInt32The port number of the proxy
userIDStringUserID for Socks4 Identification Protocol (RFC 1413)

See Also


SocksProxy(string, int, string, string)

Initializes a new instance of the SocksProxy class to connect to SOCKS5 server with defined username and password.

public SocksProxy(string address, int port, string username, string password)
ParameterTypeDescription
addressStringThe domain name or IP address of the proxy
portInt32The port number of the proxy
usernameStringUsername for authentication
passwordStringPassword for authentication

See Also