FTP: SEND PORT Command BUG

Currently in public beta: Windows Phone version

Moderators: white, Hacker, Stefan2

Post Reply
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

FTP: SEND PORT Command BUG

Post by *ozoufahl »

Der Total Commander (Desktop) sendet den Befehl
PORT 134,3,117,164,195,152

Der Total Commander (Windows Phone 8.1) sendet den Befehl
PORT Windows,Networking,Connectivity,IPInformation,4,217

Fehlermeldung: PORT-Befehl fehlgeschlagen!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That doesn't sound right, I will check it. Have you tried passive mode instead?
Author of Total Commander
https://www.ghisler.com
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

Post by *ozoufahl »

The error appears in the active mode.
The quit command is sent too early in passive mode.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The quit command is sent too early in passive mode.
Sorry, I don't understand. The Quit command is only sent when you use "Disconnect" via the plugin button.
Author of Total Commander
https://www.ghisler.com
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

Post by *ozoufahl »

but I do not press the cancel button.
The QUIT command is sent after 10 seconds.
I can attach the log messages later as a screenshot.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please post them as text. To create a log, you need to
1. Go to the Video folder
2. Create a new directory inside named
totalcommanderlog
3. Close TC via task manager (long tap on "<-" button)
4. Try to connect
Author of Total Commander
https://www.ghisler.com
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

Post by *ozoufahl »

Code: Select all

2015-12-14 10:43:52 Get directory: /
2015-12-14 10:43:53 Get directory: /Oliver Zoufahl
2015-12-14 10:43:54 Verbinde...
2015-12-14 10:43:54 Verbunden, warte auf Login...
2015-12-14 10:43:54 220 FileZilla Server 0.9.53 beta
2015-12-14 10:43:54 USER Erpas
2015-12-14 10:43:54 Einloggen...
2015-12-14 10:43:54 331 Password required for erpas
2015-12-14 10:43:54 PASS *****
2015-12-14 10:43:54 230 Logged on
2015-12-14 10:43:54 OPTS UTF8 ON
2015-12-14 10:43:55 202 UTF8 mode is always enabled. No need to send this command.
2015-12-14 10:43:55 SYST
2015-12-14 10:43:55 215 UNIX emulated by FileZilla
2015-12-14 10:43:55 CWD /
2015-12-14 10:43:55 Verbindung hergestellt!
2015-12-14 10:43:55 250 CWD successful. "/" is current directory.
2015-12-14 10:43:55 Verzeichnis herunterladen...
2015-12-14 10:43:55 TYPE A
2015-12-14 10:43:55 PASV
2015-12-14 10:43:55 200 Type set to A

2015-12-14 10:43:55 227 Entering Passive Mode (85,214,70,115,5,237)
2015-12-14 10:44:05 QUIT

2015-12-14 10:44:06 221 Goodbye
2015-12-14 10:44:06 Offline!
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

Post by *ozoufahl »

to be correct.
I post the log messages in active mode

Code: Select all

2015-12-14 11:13:42 Get directory: /
2015-12-14 11:13:43 Get directory: /Oliver Zoufahl
2015-12-14 11:13:43 Verbinde...
2015-12-14 11:13:44 Verbunden, warte auf Login...
2015-12-14 11:13:44 220 FileZilla Server 0.9.53 beta
2015-12-14 11:13:44 USER Erpas
2015-12-14 11:13:44 331 Password required for erpas
2015-12-14 11:13:44 Einloggen...
2015-12-14 11:13:44 230 Logged on
2015-12-14 11:13:44 PASS *****
2015-12-14 11:13:44 OPTS UTF8 ON
2015-12-14 11:13:44 SYST
2015-12-14 11:13:44 215 UNIX emulated by FileZilla
2015-12-14 11:13:44 202 UTF8 mode is always enabled. No need to send this command.
2015-12-14 11:13:45 Verbindung hergestellt!
2015-12-14 11:13:45 250 CWD successful. "/" is current directory.
2015-12-14 11:13:45 Verzeichnis herunterladen...
2015-12-14 11:13:45 200 Type set to A

2015-12-14 11:13:45 PORT Windows,Networking,Connectivity,IPInformation,225,34

2015-12-14 11:13:45 CWD /
2015-12-14 11:13:45 421 Rejected command, requested IP address does not match control connection IP.
2015-12-14 11:13:45 TYPE A
2015-12-14 11:13:45 QUIT
2015-12-14 11:13:45 221 Goodbye
2015-12-14 11:13:45 Offline!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce the problem with the PORT command: A function returned unexpected data here. I could fix it and will include it in the next release.

I couldn't find a problem in the PASV mode case. The program sends QUIT when there is a problem with connecting, so apparently the connection to the data port fails. I will add extra code to report the error to the log file.
Author of Total Commander
https://www.ghisler.com
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

Post by *ozoufahl »

That sounds good.
Is it possible to increase the timeout in PASV mode?
When is the next relase date planned?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

How long would you set the timeout? If it set to more than a few seconds, people will get impatient and kill the app...

The next release was planned for this month, but it may be delayed if there are new problems reported.
Author of Total Commander
https://www.ghisler.com
ozoufahl
Junior Member
Junior Member
Posts: 7
Joined: 2015-12-10, 18:35 UTC

Post by *ozoufahl »

I think the timeout should be set via the settings.
The user knows the timeout and waits until the timeout has arrived.
The mobile network is not as stable as the WiFi network. In this way, the user can increase or decrease the timeout.
That would be a cool feature.
Post Reply