I have downloaded FileZilla Server. I have enabled the following
1) It is listening to 21
2) It also enables FTP over TLS supporting explicit FTP over TLS.
Now I am trying to use WinSCP .NET library from a console application to connect. These are my session options.
Protocol = Protocol.Ftp,
HostName = strFtpServer,
UserName = strFtpUsername,
Password = strFtpPassword,
PortNumber = 990,
FtpSecure = FtpSecure.Explicit,
FtpMode = FtpMode.Passive
When the breakpoint hits
session.Open(sessionOptions);
it waits for several seconds and fails with the message
WinSCP.SessionRemoteException: 'Connection failed.
Timeout detected. (control connection)
Connection failed.'
However in the same time I am seeing a message like this FileZilla
(000048)4/2/2021 20:18:53 PM - (not logged in) (::1)> Connected on port 990, sending welcome message...
(000048)4/2/2021 20:18:53 PM - (not logged in) (::1)> 220-FileZilla Server 0.9.60 beta
(000048)4/2/2021 20:18:53 PM - (not logged in) (::1)> 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
(000048)4/2/2021 20:18:53 PM - (not logged in) (::1)> 220 Please visit https://filezilla-project.org/
(000048)4/2/2021 20:19:08 PM - (not logged in) (::1)> disconnected.
Can some one help in where is the issue?