Back to product page

PasvPort property


Determines outgoing port to be used with Passive data connection.

Type

A Long value. Outgoing port number. Default to 0 (any).

Syntax

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

Remarks

FTP protocol specification defines that all outgoing passive data connection could use local port 20, so that remote proxies/firewalls can determine that connection belongs to FTP. However, most of new systems don't follow this specification and use any outgoing port for file transfer.

wodFtpDLX will not use port 20 by default. You can change this to any other value using PasvPort property. If you set it to 0, then any outgoing port is used, as decided by winsock. If you set it to 20 (for FTP) or 989 (for FTPS) then those ports will be used for all outgoing connections.

This property is not used in SFTP protocol. Also, it only applies when Passive property is set to True.

Platforms

Windows