FTP Port range for active mode transfers

Sometimes an FTP client needs to use a particular port range for active mode data transfers in order to get by a firewall.

Date Entered: 09/26/2007    Last Updated: 09/26/2007

By default, the FTP component uses passive mode data transfers, which are always recommended. Sometimes active mode data transfers are needed however, and this often causes firewall problems on the client side. With the FTP component, you can specify a port range to use for active mode data transfers by using the PortRange config setting:
ftp.Config("PortRange=5000-5005");
ftp.ListDirectory();

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.