FTP

FTP 150 File Status OK vs 229 Entering Extended Passive Mode

FTP 150 (File Status OK) is a 1xx Positive Preliminary response, while 229 (Entering Extended 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, 229 means that entering Extended Passive Mode. The server provides only a port number for the data connection, using the same IP as the control connection. Works with both IPv4 and IPv6.

Mô tả

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.

Khi bạn thấy mã này

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

Cách khắc phục

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.

Mô tả

Entering Extended Passive Mode. The server provides only a port number for the data connection, using the same IP as the control connection. Works with both IPv4 and IPv6.

Khi bạn thấy mã này

After issuing the EPSV command. The server responds with a port number in the format (|||port|) for the client to connect to.

Cách khắc phục

No fix needed — connect to the server's control IP on the provided port. If it fails, try falling back to PASV (227) or check firewall rules.

Sự khác biệt chính

1.

150 is a 1xx Positive Preliminary response, while 229 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 229: Entering Extended Passive Mode. The server provides only a port number for the data connection, using the same IP as the control connection. Works with both IPv4 and IPv6.

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 229 when after issuing the EPSV command. The server responds with a port number in the format (|||port|) for the client to connect to.

Khi nào dùng cái nào

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 229 (Entering Extended Passive Mode): No fix needed — connect to the server's control IP on the provided port. If it fails, try falling back to PASV (227) or check firewall rules.

Tìm hiểu thêm