Ftp Object : LocalDataPort Property |
Visual Basic |
---|
Public Property LocalDataPort As String |
The default value, "0", indicates that any local port in the ephemeral port range may be used. When set to a single value, such as "20", only that port will be used. When set to a range of values, such as "1024:1028", successive ports in this range will be tried until one can be opened. Use this property if for some reason the client machine is limited in the ports that can be used to make data connections. This is often the case in intranet environments where client are restricted or firewalled for security purposes.
When using this property it is recommended to specify a range of ports if at all possible because many FTP servers do not allow connections to a port unless a period of time has elapsed since the last connection to this port.