edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Use AutoPassiveIPSubstitution to ensure that data-socket connections are made to the same IP address that the control socket is connected to.

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

Syntax

C#
public bool AutoPassiveIPSubstitution { get; set; }
Visual Basic
Public Property AutoPassiveIPSubstitution As Boolean
	Get
	Set
Visual C++
public:
property bool AutoPassiveIPSubstitution {
	bool get ();
	void set (bool value);
}

Remarks

AutoPassiveIPSubstitution is useful in passive mode when the FTP server is supplying an incorrect IP address to the client for use in creating data connections (directory listings and file transfers), e.g. an internal IP address that is not accessible from the client. Instead, the client will use the IP address obtained from the FTP server's hostname.

This usually happens when an FTP server is behind a NAT router and has not been configured to reflect the fact that its internal (LAN) IP address is different from the address that external (Internet) machines connect to.

See Also