Choosing a PASV or PORT Connection

Use the DataChannel property to set or retrieve values for the method in which the data port is established for the data channel (PASV or PORT). The default is PORT.

Syntax

String Object.DataChannel

Parameters

"PORT"

The client specifies what port to use for the data connection

"PASV"

Lets the server specify the port used for the data connection port

"DEFAULT"

Uses the method defined in Global Options

Example

Set MySite = CreateObject("CuteFTPPro.TEConnection")

MySite.Host = "ftp://ftp.cuteftp.com"

MySite.useProxy = "off"

MySite.DataChannel = "PASV"

MySite.RemoteCommand("LIST")

MySite.DataChannel = "PORT"

MySite.RemoteCommand("LIST")

MsgBox MySite.Log