Xceed FTP Library Documentation
PassiveMode property
XceedFtp control reference > Properties > PassiveMode property

Description

This property affects the way the data connection (the socket on which the files and folder listings are transferred) is initiated.

Setting this property to False means that the client (the Xceed FTP Library) will listen for a data connection from the FTP server. Most firewalls do not allow connections to be initiated from the outside, and therefore may cause the FTP operation to fail.

Setting this property to True (the default value) means that the library will initiate the data connection to the FTP server. This behavior is more firewall-friendly and has a greater chance of succeeding.

Data type

Boolean

Default value

True

Declaration  

HRESULT PassiveMode( [out, retval] VARIANT_BOOL* pbVal );

HRESULT PassiveMode( [in] VARIANT_BOOL bVal );