WS_FTP - Retrieve of directory listing failed, PORT command

Product: Version: Platform:
WS_FTP 4.0+ all

Question/Problem: Here is my log file when I get the 'Retrieve of directory listing failed' error message. What can I do to fix this?

WINSOCK.DLL: Microsoft Windows Sockets Version 1.1.
WS_FTP 4.04 98.03.17, Copyright 1992-1998 Ipswitch, Inc.
- -
connecting to
Connected to port 21
[12] from port 0
220 FTP server (Version wu-2.4.2-academ[BETA-15](1) Mon
Sep 22 20:49:48 EDT 1997) ready.
USER *****
331 Password required for *****.
PASS (hidden)
230 User ***** logged in. Access restrictions apply.
CWD public_html
250 CWD command successful.
257 "/public_html" is current directory.
Host type (I): UNIX (standard)
PORT 1,2,3,4,0,0
500 Illegal PORT Command
! Failed "port":
! Retrieve of directory listing failed (0)

Answer/Solution: If the ftp server issues the 'Illegal PORT command', the error can be eliminated by enabling the 'Passive Transfers' in the Options > Session tab > "Use Passive Transfer Mode" .

You can also increase the time-out settings from 60 to 120. Toggle the "Set as Default" after modifying theses setting.

Another method is in Session Properties > Advanced tab > Passive transfers
Don't forget the save by clicking the Apply button!

Document #: Revision Date:
WS-19980821-DD04 10/27/04

Return To KnowledgeBase Search Page