Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Unable to connect to FileZilla

Can you connect with WinSCP GUI running on the same machine? Or with any other FTP client? If you can, post its logs file, and the session log file from your code as well (Session.SessionLogPath).

Unable to connect to FileZilla

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 (
(000048)4/2/2021 20:18:53 PM - (not logged in) (::1)> 220 Please visit
(000048)4/2/2021 20:19:08 PM - (not logged in) (::1)> disconnected.

Can some one help in where is the issue?