FTP Plugin connection problem

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
yeellow
Junior Member
Junior Member
Posts: 28
Joined: 2003-11-19, 00:42 UTC

FTP Plugin connection problem

Post by *yeellow »

Hi,

I have troubles connecting to my ftp server. I use smallftpd (http://smallftpd.sourceforge.net/) and it works fine when I connect using PC version of TC or when I use Ghost Commander on Android.

When I try to connect from Android TC I get the message that the folder is being read and than nothing happens. I have to manually cancel it. I tried many different options (passive/active, etc.) but with no success. Here is the log (some comments are still in Polish, I translated important ones):

2012-07-23 17:19:50 FTP:Pobierz katalog.../yellow-server/
2012-07-23 17:19:50 FTP:Ustalanie adresu serwera...
2012-07-23 17:19:50 FTP:Łączenie...
2012-07-23 17:19:50 FTP:Połączony, oczekiwanie na logowanie...
2012-07-23 17:19:50 FTP:220 report bugs to smallftpd@free.fr
2012-07-23 17:19:50 FTP:Logowanie...
2012-07-23 17:19:50 FTP:USER xxxxxxx
2012-07-23 17:19:50 FTP:331 User name okay, password required.
2012-07-23 17:19:50 FTP:PASS ***********
2012-07-23 17:19:50 FTP:230 User logged in.
2012-07-23 17:19:50 FTP:OPTS UTF8 ON
2012-07-23 17:19:50 FTP:500 Command not understood.
2012-07-23 17:19:50 FTP:SYST
2012-07-23 17:19:50 FTP:215 UNIX Type: L8
2012-07-23 17:19:50 FTP:Connection OK!
2012-07-23 17:19:50 FTP:Retrieve folder...
2012-07-23 17:19:50 FTP:CWD /
2012-07-23 17:19:50 FTP:250 CWD command successful.
2012-07-23 17:19:50 FTP:TYPE A
2012-07-23 17:19:50 FTP:200 Type set to A.
2012-07-23 17:19:50 FTP:PASV
2012-07-23 17:19:50 FTP:227 Entering Passive Mode (xx,xxx,xxx,xxx,xx,xxx)
2012-07-23 17:19:50 FTP:LIST
2012-07-23 17:19:50 FTP:150 Data connection ready.
2012-07-23 17:19:50 FTP:Retrieve folder...
2012-07-23 17:20:18 FTP:Waiting for the server...
2012-07-23 17:20:18 FTP:226 Transfer complete.
2012-07-23 17:20:18 FTP:QUIT
2012-07-23 17:20:18 FTP:221 Good bye.
2012-07-23 17:20:18 FTP:Tryb OFFLINE!

TIA,
Marcin
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, no idea - I will try to install the server and make a connection.
Author of Total Commander
https://www.ghisler.com
baks-lab
New Member
New Member
Posts: 1
Joined: 2012-09-21, 16:42 UTC

Post by *baks-lab »

Hi,
I have faced quite similar issue with FTP connection.
I am trying to connect to my own ftp server which is placed behind the router's NAT (appropriate port forwarding rules are configured) using the "PASSIVE" mode. "Login" proceeds properly but connection fails after the remote server sends the "PASV" command with local IP:
====
2012-09-21 10:09:13 FTP:227 Entering Passive Mode (192,168,0,3,80,193).
2012-09-21 10:09:16 FTP:QUIT
2012-09-21 10:09:16 FTP:221 Goodbye.
====
I have tested the same scenario using the desktop version of TC and found that such behaviour is handled correctly:
====
PASV
227 Entering Passive Mode (192,168,0,3,80,183).
Server reports local IP -> Redirect to: 94.178.5.226
LIST
====
The old beta versions of Android TC worked properly the issue appeared after the update to 1.0.3.

I am looking forward your advise.

PS. Just for case I have attached the full logs from AndroidTC and DesktopTC:

Android:
====
2012-09-21 10:09:10 FTP:Получить каталог.../
2012-09-21 10:09:12 FTP:Получить каталог.../baks(at)baks-lab*org*ua/
2012-09-21 10:09:12 FTP:Получение адреса сервера...
2012-09-21 10:09:12 FTP:Соединение...
2012-09-21 10:09:12 FTP:Соединение, ожидание логина...
2012-09-21 10:09:12 FTP:220 NET Disk FTP Server ready.
2012-09-21 10:09:12 FTP:Вход в систему...
2012-09-21 10:09:12 FTP:USER baks
2012-09-21 10:09:13 FTP:331 User name okay, need password.
2012-09-21 10:09:13 FTP:PASS *****
2012-09-21 10:09:13 FTP:230 User logged in, proceed.
2012-09-21 10:09:13 FTP:OPTS UTF8 ON
2012-09-21 10:09:13 FTP:451 Requested action aborted: local error in processing.
2012-09-21 10:09:13 FTP:SYST
2012-09-21 10:09:13 FTP:215 UNIX Type: L8
2012-09-21 10:09:13 FTP:Соединено!
2012-09-21 10:09:13 FTP:Получить каталог...
2012-09-21 10:09:13 FTP:CWD /
2012-09-21 10:09:13 FTP:250 Requested file action okay, completed.
2012-09-21 10:09:13 FTP:TYPE A
2012-09-21 10:09:13 FTP:200 Type set to A.
2012-09-21 10:09:13 FTP:PASV
2012-09-21 10:09:13 FTP:227 Entering Passive Mode (192,168,0,3,80,193).
2012-09-21 10:09:16 FTP:QUIT
2012-09-21 10:09:16 FTP:221 Goodbye.
2012-09-21 10:09:16 FTP:ОФФЛАЙН!
====

Desktop:
====
Connect to: (21.09.2012 9:33:51)
hostname=ftp*baks-lab*org*ua
username=baks
startdir=
ftp*baks-lab*org*ua=94.178.5.226
220 NET Disk FTP Server ready.
USER baks
331 User name okay, need password.
PASS ***********
230 User logged in, proceed.
SYST
215 UNIX Type: L8
FEAT
211- Extension supported:
PASV
SIZE
211 END
HELP SITE
211 System not supported features
OPTS UTF8 ON
451 Requested action aborted: local error in processing.
Connect ok!
PWD
257 "/" is current directory.
Чтение каталога...
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,0,3,80,183).
Server reports local IP -> Redirect to: 94.178.5.226
LIST
150 File status okay; about to open data connection.
Загрузка
Ожидание ответа сервера...
226 Closing data connection.
====

Best regards Vitaliy.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC for Android does not handle FTP by itself, it's handled in a plugin. I need to know which plugin version is the last one which works. Btw, currently there isn't even a beta version of the FTP plugin, it's still the same as the one for TC 1 for Android.

Here are the last FTP plugin versions:

Latest version 1.01:
https://plugins.ghisler.com/aplg/tcandroidftp101.apk

Previous versions: Overview see:
https://plugins.ghisler.com/aplg/
Author of Total Commander
https://www.ghisler.com
FearlessSpiff
Junior Member
Junior Member
Posts: 13
Joined: 2011-11-10, 13:03 UTC

Post by *FearlessSpiff »

Oh. Count me in on this one! I think I have the same problem with Shuttersnitch on iPhone: http://www.ghisler.ch/board/viewtopic.php?t=35685
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is that the server reports its internal address instead of the true internet address:
227 Entering Passive Mode (192,168,0,3,80,193).

Instead of: 94.178.5.226

TC for Windows contains code to detect this and work around it. FTP for Android is much simpler and doesn't contain these workarounds (there are many).
Author of Total Commander
https://www.ghisler.com
jacko9000
Junior Member
Junior Member
Posts: 8
Joined: 2013-06-30, 18:00 UTC

Post by *jacko9000 »

Will the FTP plugin workaround be implemented for Android?
jacko9000
Junior Member
Junior Member
Posts: 8
Joined: 2013-06-30, 18:00 UTC

Post by *jacko9000 »

jacko9000 wrote:Will the FTP plugin workaround be implemented for Android?
Sorry, I meant to reply to the related topic with number 35071. I can't post the URL due to spamming restrictions.
jacko9000
Junior Member
Junior Member
Posts: 8
Joined: 2013-06-30, 18:00 UTC

Post by *jacko9000 »

jacko9000 wrote:
jacko9000 wrote:Will the FTP plugin workaround be implemented for Android?
Sorry, I meant to reply to the related topic with number 35071. I can't post the URL due to spamming restrictions.
Forget everything I have said. I managed to get the FTP server settings altered to work with Total Commander, which is great, because I didn't want to have to use a different file manager, especially a single-pane one, after 18 months with Total Commander.

For future reference for other users, the problem was with the FTP server, GuildFTPd. The "Custom IP" field in the "Passive Mode" section, in the "Advanced Settings" tab of the Admin options, was set to the local IP address (LAN) of the FTP server, instead of the external IP address (WAN) of the FTP server, which meant that Total Commander could not get a directory listing from the FTP server in passive mode, even though it had successfully logged in.

Sorry for such a misleading first post, but it was done under difficult circumstances using a mobile phone, and I also had to overcome some problems with registration.

Regards,
Jacko
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Previous three posts moved from FTP-Plugin: No connection to Shuttersnitch iPhone ftp server.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply