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).

Deskripsi

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.

Ketika Anda Melihatnya

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

Cara Memperbaiki

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.

Deskripsi

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

Ketika Anda Melihatnya

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

Cara Memperbaiki

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

Perbedaan Utama

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.

Kapan Menggunakan Yang Mana

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.

Pelajari Lebih Lanjut