An NDoc Documented Class Library |

# FTPConnection.ActivePortRange Property

Specifies the range of ports to be used for data-channels in active mode.

public virtual PortRange ActivePortRange {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

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace