FTP

FTP 150 File Status OK vs 228 Entering Long Passive Mode

FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 228 (Entering Long Passive Mode) is a 2xx Positive Completion response. 150 indicates that the file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer. In contrast, 228 means that entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV (229).

Description

The file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer.

Quand vous le voyez

Right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.

Comment résoudre

No fix needed — this means the transfer is about to start. If the transfer stalls after this reply, check firewall rules blocking the data connection.

Description

Entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV (229).

Quand vous le voyez

After issuing the LPSV command on servers that support long addresses. Rarely seen in practice as EPSV is preferred.

Comment résoudre

No fix needed, but consider using EPSV (Extended Passive Mode) instead, which is more widely supported and simpler to parse.

Différences clés

1.

150 is a 1xx Positive Preliminary response, while 228 is a 2xx Positive Completion response.

2.

FTP 150: The file status is okay and the server is about to open the data connection for the transfer. This is the normal precursor to a file transfer.

3.

FTP 228: Entering Long Passive Mode. An extended version of passive mode that supports longer addresses, including IPv6. Largely superseded by EPSV (229).

4.

You encounter 150 when right before a file download or upload begins, confirming the file is accessible and the data channel is being opened.

5.

You encounter 228 when after issuing the LPSV command on servers that support long addresses. Rarely seen in practice as EPSV is preferred.

Quand utiliser lequel

For 150 (File Status OK): No fix needed — this means the transfer is about to start. If the transfer stalls after this reply, check firewall rules blocking the data connection. For 228 (Entering Long Passive Mode): No fix needed, but consider using EPSV (Extended Passive Mode) instead, which is more widely supported and simpler to parse.

En savoir plus