FTP connection problem

  • Thread starter Thread starter Kwaj
  • Start date Start date
K

Kwaj

I have set-up an FTP server at home. It sits behind an ADSL router...thus I
have had to use port forwarding to get it to operate properly.

I have set up the FTP server on port 221 as oposed to port 21.

I can connect to my FTP server from any machine on my LAN. However when I
let a friend attempt to connect from another country he gets the following
error:

150 Opening ASCII mode data connection for directory list
421 Failed to create data connection socket.
426 Connection timed out, aborting transfer.

Any ideas what might be going on? I can connect using the same software -
however I am on the same LAN as the server. My friend can't connect (using
the same software)...his connection generates the above error
 
I have set-up an FTP server at home. It sits behind an ADSL router...thus I
have had to use port forwarding to get it to operate properly.
I have set up the FTP server on port 221 as oposed to port 21.
I can connect to my FTP server from any machine on my LAN. However when I
let a friend attempt to connect from another country he gets the following
error:
150 Opening ASCII mode data connection for directory list
421 Failed to create data connection socket.
426 Connection timed out, aborting transfer.
Any ideas what might be going on?

FTP uses 2 ports: port 21 for control (connection, send/receive commands), port
20 for data (send/receive files, directory listing). Port 21 is forwarded as
port 221 and you've told the client to use this port for control, but it still
thinks port 20 is data. There's little point forwarding port 20, as there's no
way I know of to tell the client about it.

You willl need to use passive mode (usually a tick box or something that says
"Passive" or "PASV").

Regards,
Chris
 
Back
Top