edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Specifies the range of ports to be used for data-channels in active mode.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual PortRange ActivePortRange { get; }
Visual Basic
Public Overridable ReadOnly Property ActivePortRange As PortRange
	Get
Visual C++
public:
virtual property PortRange^ ActivePortRange {
	PortRange^ get ();
}

Remarks

By default, the operating system selects the ports to be used for active-mode data-channels. When ActivePortRange is defined, a port within this range will be selected.

This settings is not used in passive mode.

This can be particularly useful in scenarios where it is necessary to configure a NAT router to statically route a certain range of ports to the machine on which the FTP client is running.

See Also