+2 votes

I am trying to confirm if the 'ActiveModeAddress ' property is used to set the ip address that is sent in the PORT command, when trying to access a FTP server in active mode?

I am running my app behind a firewall/router (amazon aws) and the FTP component I currently use sends the local ip address (and not the public ip address) in the PORT command. The FTP component I currently use does not expose the port command address so that I could change it.

Would your component allow me to change that address?

by

1 Answer

0 votes

Ftp.ActiveModeAddress property is for exactly that purpose.

It gets or sets the IP address announced to the FTP server when establishing an active mode data transfer.

By default, the value of this property is None - which means that the address of the network interface is used.

by (301k points)
...