Posted: 2012-08-24 07:26
Here is my code, I dont know where the "Force IP address for passive mode connections" setting is in the .NET assembly, which I have had to enable to transfer a local file to a ftp server through the WinSCP GUI.
SessionOptions sessionOptions = new SessionOptions
Protocol = Protocol.Ftp,
HostName = "sos.com",
UserName = "sos",
Password = "xxxxxxxxx",
SslCertificate = "2b:04:a8L.. ",
FtpMode = FtpMode.Passive,
FtpSecure = FtpSecure.ExplicitTls
Without enabling "Force IP address for passive mode connection" setting I get the following error when using WinSCP GUI.
"Server sent passive reply with unroutable address xx.xx.xx.xx, using host address instead"
If I enable the "Force IP address for passive mode connection" setting in the WinSCP GUI everything works fine.
The problem is that I don't know how to enable this setting using the .NET assembly?
Any assistance would be very much appreciated.
Posted: 2012-08-27 01:51
Found the setting.
Location: Prague, Czechia
Thanks for your report.
This bug has been added to the tracker:
I'm sending you a fixed version for testing.
You can post new topics in this forum
And it's free!