Back to product page

MaxDataPort property


Specifies highest port that can be used for incoming data connections.

Type

A Long value.

Syntax

  • Basic
object.MaxDataPort[= value]
The MaxDataPort(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
valueA Long value. Specifies max data port.

Remarks

When MaxDataPort property is set to value different than 0, it defines highest port number to be used for data connections in FTP and FTPS protocols (this property is ignored in SFTP protocol). It is used for Passive=False tranfers (nonpassive) when wodFtpDLX needs to bind and listen on certain port where server will connect to transfer the data (for uploads, downloads and directory listings).

This property is used when your server is behind a firewall and only certain range of ports is accessible through the firewall. Usually, these are values a bit above 1024, although any range between 1024-65535 can be used.

If you don't set this value, or is set to 0, wodFtpDLX will not use any specific range, and will always use whatever port windows assigns.

Platforms

Windows