Ftp Object : Passive Property |
Visual Basic |
---|
Public Property Passive As Boolean |
The default value is True.
You can set this property at design time. When set to True, an ftpPassive command is sent before a data transfer and the control connects to the server. When set to False, an ftpPort command is sent before a data transfer and the server connects to the control.
If the server does not work with the ftpPassive command, set this property to False.
Firewalls often restrict incoming connections, while allowing outgoing connections, so the default value of True makes this control firewall-friendly for non-secure FTP sessions.