FTP 125 Data Connection Open vs 226 Closing Data Connection
FTP 125 (Data Connection Open) is a 1xx Positive Preliminary response, while 226 (Closing Data Connection) is a 2xx Positive Completion response. 125 indicates that the data connection is already open and the transfer is beginning. No need to open a new data connection. In contrast, 226 means that closing data connection. The requested file action was successful and the data connection is being closed.
Description
The data connection is already open and the transfer is beginning. No need to open a new data connection.
When You See It
When the server reuses an existing data connection for a file transfer instead of opening a new one.
How to Fix
No fix needed — the transfer is starting immediately. Your client should begin reading or writing data on the existing connection.
Description
Closing data connection. The requested file action was successful and the data connection is being closed.
When You See It
After a file transfer, directory listing, or other data operation completes successfully.
How to Fix
No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.
Key Differences
125 is a 1xx Positive Preliminary response, while 226 is a 2xx Positive Completion response.
FTP 125: The data connection is already open and the transfer is beginning. No need to open a new data connection.
FTP 226: Closing data connection. The requested file action was successful and the data connection is being closed.
You encounter 125 when when the server reuses an existing data connection for a file transfer instead of opening a new one.
You encounter 226 when after a file transfer, directory listing, or other data operation completes successfully.
When to Use Which
For 125 (Data Connection Open): No fix needed — the transfer is starting immediately. Your client should begin reading or writing data on the existing connection. For 226 (Closing Data Connection): No fix needed — the transfer completed successfully. The data connection is closed and a new one will be opened for the next transfer.