Setting or Retrieving Values for SOCKS Servers

Use the SocksInfo property to set or retrieve values for SOCKS4 or SOCKS5 servers. (SOCKS is a protocol for a TCP proxy across firewalls.)

Syntax

String Object.SocksInfo

Authentication Parameters

"socks4://socksusername:sockspassword@sockshostname:socksport"

For SOCKS4 servers that require authentication.

"socks5://socksusername:sockspassword@sockshostname:socksport"

For SOCKS5 servers that require authentication.

"socks4:// sockshostname:socksport"

For SOCKS4 servers that do not require authentication.

"socks5:// sockshostname:socksport"

For SOCKS5 servers that do not require authentication.

 

Additional parameters

"socksusername"

The user name or log in name to the SOCKS server.

"sockspassword"

The password for the SOCKS server.

"sockshostname"

The address and port for the SOCKS server.

Example 1

MySite.SocksInfo = "socks4//globalscape.com:1080" 'use socks4 without authorization

Example 2

MySite.SocksInfo = "socks5://joeuser:mypass@globalscape.com:1080" 'use socks5 with authorization for user "joeuser" with password "mypass"

Example 3

str = MySite.SocksInfo 'retrieve the current value of SocksInfo (empty if none)

MsgBox str 'now display it