Back to product page

ProxyHostname property


Specifies the hostname of the proxy to use.

Type

A String value. Specifies the hostname of the proxy server.

Syntax

  • Basic
object.ProxyHostname [= value]
The ProxyHostname(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSFTP.
valueA String value.

Remarks

When the wodSFTP client is unable to establish a direct connection (when not connected directly to the Internet, for example), the proxy option can be used. There are several types of proxies supported by the wodSFTP control. When any proxy is used, this property specifies the hostname for the remote proxy. Be careful though, this property is not same as the Hostname property.

When a connection to a proxy is established, wodSFTP will issue a request to the proxy to open a remote connection to the hostname specified by the ProxyHostname property.

For example,
 
   wodSFTP1.ProxyType = ProxyWEBStandard
   wodSFTP1.ProxyHostname = "proxy.server.com"
   wodSFTP1.ProxyPort = 80
   wodSFTP1.Connect "linux.weonlydo.com"
 

would connect to WeOnlyDo's test SFTP server, but through the proxy 'proxy.server.com'.

Platforms

Windows