FTP

FTP 200 Command OK vs 229 Entering Extended Passive Mode

Both FTP 200 (Command OK) and 229 (Entering Extended Passive Mode) belong to the 2xx Positive Completion category. 200 indicates that the command has been successfully executed. This is a general acknowledgment that the command was understood and carried out. Meanwhile, 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 command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

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

After issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

Cách khắc phục

No fix needed — the command succeeded. This is the standard positive response for commands that don't return data.

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.

FTP 200: The command has been successfully executed. This is a general acknowledgment that the command was understood and carried out.

2.

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.

3.

You encounter 200 when after issuing any command that completes successfully, such as TYPE, MODE, or NOOP.

4.

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 200 (Command OK): No fix needed — the command succeeded. This is the standard positive response for commands that don't return data. 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