Discussion Locked

FTP clients can't open data connection

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm running an FTP server using IIS 4.0 on NT4 server sp6a. This server is not multi-homed. This server is connected to the internet through a WIN2K server using NAT. The NAT server is configured to route requests coming in on port 21 to the FTP server. Most remote clients have no problem accessing this server. Other remote clients can connect but are unable to open a data connection.

I have captured the packets from successfull connections and failures. On the failures, the last FTP command issued by the client is 'PASV'. The server responds '227 entering passive mode' and sets a port. After that the server does not recieve anymore ftp packets from the client, and the client returns a can't open data connection error.

However these same clients can access other ftp servers such as ftp.microsoft.com.

Any help would be greatly appreciated.

11 replies

by harold

This is a clientside problem, they should not enable passive mode in the ftp client.
However you might also try to route port 20 (ftp data connection) to your ftp-server.

by soloshell3

Thanks for trying, but port 20 doesn't need to be specificly routed to my FTP server. Other clients can connect. When the succesfull clients make a data connection, they issue a PORT command(through control port 21) telling my FTP which port they will listen on when my Server initiates a data connection, in responce to a command like LS coming in on control port 21. Also the clients that are failing are using a PASV command instead of a PORT command. A PASV command tells my server not to initiate a data connection when a command like LS comes in on control port 21, but instead to tell the client which port the server will be listening on for the data connection. Now this might sound like a client problem, however this same client has no problem connecting to other FTP servers.

by mhinckley

Don't have a solution, just a comment - it's ok to have client in passive mode (PASV) to connect from PCs running a firewall. You might check to see if the PCs you'r having trouble with have firewalls of some sort on them, and if so, is that the problem. Good luck.

by soloshell3

Thanks for the comment. The clients that I'm having trouble with are behind firewalls, however they have no problem connecting to other ftp servers.

by soloshell3

Thanks for trying, but port 22 doesn't need to be specificly routed to my FTP server. Other clients can connect. When the succesfull clients make a data connection, they issue a PORT command(through control port 21) telling my FTP which port they will listen on when my Server initiates a data connection, in responce to a command like LS coming in on control port 21. Also the clients that are failing are using a PASV command instead of a PORT command. A PASV command tells my server not to initiate a data connection when a command like LS comes in on control port 21, but instead to tell the client which port the server will be listening on for the data connection. Now this might sound like a client problem, however this same client has no problem connecting to other FTP servers.

by soloshell3

Thanks for trying, but port 20 doesn't need to be specificly routed to my FTP server. Other clients can connect. When the succesfull clients make a data connection, they issue a PORT command(through control port 21) telling my FTP which port they will listen on when my Server initiates a data connection, in responce to a command like LS coming in on control port 21. Also the clients that are failing are using a PASV command instead of a PORT command. A PASV command tells my server not to initiate a data connection when a command like LS comes in on control port 21, but instead to tell the client which port the server will be listening on for the data connection. Now this might sound like a client problem, however this same client has no problem connecting to other FTP servers.

This discussion is closed to new replies.