[NEWBIE] ftplib error?

Pedro Rodriguez pedro_rodriguez at club-internet.fr
Wed Jan 16 12:02:18 EST 2002


"Bruce Dykes" <bkd at graphnet.com> wrote:

>
> The IP addy, userid and password have all been changed to protect the
>
My try : what about the tcp port ? 
Python by default uses the standard tcp port 21, is this still the one
you should use on your system ?

If the ftp server does not run on the standard port anymore (for security
reasons ?), you may get this error from an interactive ftp :

$ ftp localhost 2000
ftp: connect: Connection refused

while this works :
$ ftp localhost 21
Connected to localhost (127.0.0.1).
220 localhost.localdomain FTP server (Version wu-2.6.1-18) ready.

Hope this helps,
-- 

Pedro



More information about the Python-list mailing list