Weird FTP connection issues with existing server

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jcarls
Junior Member
Junior Member
Posts: 2
Joined: 2023-12-18, 21:00 UTC

Weird FTP connection issues with existing server

Post by *jcarls »

I've been using Total Commander's FTP functions for years to access my web site, but in the last month or so, the initial connection fails to produce a file list. After the connection has been successful, the file list area is blank and the log file shows the sequence below (with some annotations).

Although the FTP status line appears to show the connection is there, I have to essentially "trick" the software (by moving to a different disk and back) to get it to work, usually after a "connection lost, reconnect?" prompt appears in that process. Once that happens, the FTP connection seems to behave normally. This FTP connection has functioned without a problem for years until recently, but except for a password change, I have not made changes to the client setup. If anyone has any ideas about what might cause this, I would appreciate any input. Thanks!

Log file contents (for security reasons, I have made the site and folder names generic):

----------
Connect to: (12/18/2023 13:49:05)
hostname=mysite.com
username=***carls***
startdir=mysite.com/mysitedir
mysite.com=69.163.216.61
220 DreamHost FTP Server
USER ***carls***
331 Password required for ***carls***
PASS ***********
230 User ***carls*** logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
MFF modify;UNIX.group;UNIX.mode;
REST STREAM
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
UTF8
EPRT
EPSV
LANG es-ES;ru-RU;bg-BG;fr-FR;en-US*;ja-JP;zh-TW;zh-CN;ko-KR;it-IT
MDTM
TVFS
MFMT
SIZE
211 End
OPTS UTF8 ON
200 UTF8 set to on
CWD mysite.com/mysitedir
250 CWD command successful
Connect ok!
PWD
257 "/mysite.com/mysitedir" is the current directory
Get directory
TYPE A
200 Type set to A
PORT 10,0,0,96,204,221
200 PORT command successful
MLSD <==== LONG DELAY
PORT failed, try PASV mode!
PASV <==== FOLDER PATH SHOWS CORRECT ADDRESS, BUT NO FILES
*** [PRESSED F2 KEY] ***
Get directory
PASV
425 Unable to build data connection: Connection timed out
PORT 10,0,0,96,206,158
200 PORT command successful
MLSD
PORT failed, try PASV mode!
PASV
Get directory
PASV
OFFLINE4, no reply
*** [MOVED TO A LOCAL DISK, THEN BACK TO SITE "DRIVE"] ***
*** [RECEIVED "RECONNECT?" MESSAGE] ***
----------
Connect to: (12/18/2023 13:52:20)
hostname=mysite.com
username=***carls***
startdir=mysite.com/mysitedir
mysite.com=69.163.216.61
220 DreamHost FTP Server
USER ***carls***
331 Password required for ***carls***
PASS ***********
230 User ***carls*** logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
MFF modify;UNIX.group;UNIX.mode;
REST STREAM
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
UTF8
EPRT
EPSV
LANG es-ES;ru-RU;bg-BG;fr-FR;en-US*;ja-JP;zh-TW;zh-CN;ko-KR;it-IT
MDTM
TVFS
MFMT
SIZE
211 End
OPTS UTF8 ON
200 UTF8 set to on
Connect ok!
CWD /mysite.com/mysitedir
250 CWD command successful
PWD
257 "/mysite.com/mysitedir" is the current directory
Get directory
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (69,163,216,61,150,215).
Connected to PASV port
MLSD
150 Opening ASCII mode data connection for MLSD
Download
Waiting for server...
226 Transfer complete
*** [FILE LIST DISPLAYS CORRECTLY] ***
Last edited by jcarls on 2023-12-19, 15:14 UTC, edited 1 time in total.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: Weird FTP connection issues with existing server

Post by *sqa_wizard »

Try to set "Passive mode" at connection details.
#5767 Personal license
jcarls
Junior Member
Junior Member
Posts: 2
Joined: 2023-12-18, 21:00 UTC

Re: Weird FTP connection issues with existing server

Post by *jcarls »

Not sure about the how, when or why of what changed, but that seems to have fixed it. Thanks!
Post Reply