Re: Problems using ftplib: Can't build data connection: Connection refused.

Armin Gruner (gruner@informatik.tu-muenchen.de)
Mon, 28 Feb 1994 19:49:37 +0100

Yes, set the listen(0) to listen(1). We had the same problems under
Ultrix, OSF/1 and Dynix.

-Armin

On Fri, 25 Feb 1994, Steve Kirsch wrote:

> I can't get ftplib to work for me at all. I try the test script
> mentioned at the beginning of the file:
>
> from ftplib import FTP
> ftp=FTP('corp')
> ftp.login()
> def handle_one_line(line):
> print line
> ftp.debugging=1
> ftp.retrlines('LIST', handle_one_line)
>
>
> I get:
> *cmd* 'TYPE A'
> *resp* '200 Type set to A.'
> *cmd* 'PORT 198,5,208,1,129,138'
> *resp* '200 PORT command successful.'
> *cmd* 'LIST'
> *resp* "425 Can't build data connection: Connection refused."
>
> Has anyone already debugged this?
>
> -steve
>
>
>

____
Armin Gruner, Technische Universitaet, Muenchen \ /
http://www.informatik.tu-muenchen.de/~gruner \/
Nur wer sich aendert, bleibt sich treu - Wolf Biermann