

You may also not know what the data port is.

The port is actually calculated via the following formula y1*256+y2. This line is sent to the client, telling the client what IP address to connect to and what port to use for the data channel. Where the x’s are the server’s IP address and the y’s are two numbers from 0-255.

Response: 227 Entering Passive Mode (x,x,x,x,y1,y2) The server will send a response message like this: If your client is using passive mode (the usual default) it will at some point send the command PASV alerting the server that it wants to enter passive mode. In FTP passive mode your client node will contact the FTP server on port 21, which is what’s called the command channel. Understanding The Problem – FTP Passive Mode If you already understand FTP or don’t give a crap about the problem then skip this and go to Fixing Problem #1. So you’re actually running up against two problems here that if you haven’t decided to delve into the annals of FTP you haven’t seen or cared about before. Response: 150 Opening BINARY mode data connection.Įrror: Failed to retrieve directory listing Response: 227 Entering Passive Mode (,211,117). Line 3: Status: Server sent passive reply with unroutable address. If you’re in the same place I was you received an error that looked like this: Both because I needed to learn a bit about FTP and Microsoft’s scheme for getting things configured wasn’t exactly what I’d call intuitive. Just recently I was setting up IIS with FTPS and had a bear of a time getting it to work.
