FTP

FTP 120 Service Ready Soon vs 227 Entering Passive Mode

FTP 120 (Service Ready Soon) is a 1xx Positive Preliminary response, while 227 (Entering Passive Mode) is a 2xx Positive Completion response. 120 indicates that the service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly. In contrast, 227 means that entering Passive Mode. The server provides an IP address and port number for the client to connect to for data transfer, formatted as (h1,h2,h3,h4,p1,p2).

説明

The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

このコードが表示される場合

When connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

解決方法

Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator.

説明

Entering Passive Mode. The server provides an IP address and port number for the client to connect to for data transfer, formatted as (h1,h2,h3,h4,p1,p2).

このコードが表示される場合

After issuing the PASV command. The server switches to passive mode and tells the client where to connect for data transfer.

解決方法

No fix needed — parse the IP and port from the response to establish the data connection. If connections fail, check NAT/firewall rules on the passive port range.

主な違い

1.

120 is a 1xx Positive Preliminary response, while 227 is a 2xx Positive Completion response.

2.

FTP 120: The service will be ready in a certain number of minutes. The server is not yet available but expects to be shortly.

3.

FTP 227: Entering Passive Mode. The server provides an IP address and port number for the client to connect to for data transfer, formatted as (h1,h2,h3,h4,p1,p2).

4.

You encounter 120 when when connecting to an FTP server that is starting up or temporarily busy with maintenance tasks.

5.

You encounter 227 when after issuing the PASV command. The server switches to passive mode and tells the client where to connect for data transfer.

どちらをいつ使うか

For 120 (Service Ready Soon): Wait the indicated number of minutes and try connecting again. If the server never becomes ready, contact the server administrator. For 227 (Entering Passive Mode): No fix needed — parse the IP and port from the response to establish the data connection. If connections fail, check NAT/firewall rules on the passive port range.

詳しく見る