Tools

227 FTP response code

A 227 code is the response given by the server to the PASV command. It indicates that the server is ready for the client to connect to it for the purpose of establishing a data connection. The format of this response is important because the client software must be capable of parsing out the connection information it contains. The values h1 to h4 are the IP addresses that the server is listening on.

First published date

10/24/2018 8:43 PM

Last published date

10/24/2018 8:43 PM

Overview

This article explains why the 227 FTP response code is sent.

Product section

Serv-U Managed File Transfer & Serv-U FTP Server

Resolution

This is the response given by the server to the PASV command. It indicates that the server is ready for the client to connect to it for the purpose of establishing a data connection. The format of this response is important because the client software must be capable of parsing out the connection information it contains. The values h1 to h4 are the IP addresses that the server is listening on. The values p1 to p2 are used to calculate the port that the server is listening on using the following formula: PASV port = (p1 * 256) + p2.

Example response 

227 Entering Passive Mode (h1, h2, h3, h4, p1, p2)

Possible command

PASV FTP command