Description
-
Determines outgoing port to be used with
Passive data
connection.
Property type
-
A Long value. Outgoing port number. Default to 0 (any).
Syntax
-
object.PasvPort [= value]
The PasvPort Property syntax has these parts:
| object |
An expression
evaluating to an object of type wodFtpDLX. |
| value |
A 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.