Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.DataPort Property

Indicates the port number to use when binding the data channel for the FTP client session.

Pascal
property DataPort: Integer;

DataPort is an Integer property that indicates the port number to use when binding the data channel for the FTP client session. 

The default value for the DataPort property is 0 (zero), and indicates that the data port is assigned when the data channel connection is bound. 

DataPort is used in internal processing for both the Get and Put methods to create a data channel that actively listens for a server connection (when Passive contains False). FTP clients will send the FTP PORT command, or the PBSZ and PROT commands when UsingExtDataPort indicates extended port protection features are enabled for the server. 

Use DataPortMin and DataPortMax when proxy servers or firewalls require values in the DataPort property to be in an accepted range of values.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.