The Rebex FTP API is designed a little different. However, behavior of the
System.Net.FtpClient.FtpDataConnectionType can be achieved.
At first step, you have to thing, whether you want to use
Active connection type. To set this, use the
Ftp.Passive property (default is true = passive). It corresponds to
EPRT values corresponds to setting the
Ftp.Settings.ForceExtendedDataChannelCommand option to true.
PASVEX value corresponds to setting the
Ftp.Settings.IgnorePassiveModeAddress option to true.
Please note, that Rebex FTP has a workaround for FTP servers that announce private range IP addresses even though a public IP was used to connect to them. By default, when such server is detected, an IP address announced by the server in response to
PASV command is overridden with an IP used by the control connection.
To disable this workaround set the
Ftp.Settings.DisableInvalidPassiveModeAddressWorkaround option to true.