Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 961267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:18:58+00:00 2026-05-16T01:18:58+00:00

After the control connection to port 21 is created, the FTP server sends the

  • 0
  1. After the control connection to port 21 is created, the FTP
    server sends the 220 (service
    ready) response on the control connection.

  2. The client sends the USER command.

  3. The server responds with 331 (user name is OK, a password
    is required).

  4. The client sends the PASS command.

  5. The server responds with 230 (user login is OK).

  6. The client issues a passive open on an ephemeral port for
    the data connection and sends the PORT command (over
    the control connection) to give this port number to the server.

  7. The server does not open the connection at this time, but
    prepares itself for issuing an active
    open on the data connection between port 20 (server side)
    and the ephemeral port received
    from the client. It sends the response 150 (data connection
    will open shortly).

  8. The client sends the TYPE command.

  9. The server responds with the response 200 (command OK).

  10. The client sends the STRU command.

  11. The server responds with 200 (command OK).

  12. The client sends the STOR command.

  13. The server opens the data connection and sends the
    response 250.

  14. The client sends the file on the data connection. After the
    entire file is sent, the data connection is closed. Closing the
    data connection means end-of-file.

  15. The server sends the response 226 on the control
    connection.

  16. The client sends the QUIT command or uses other
    commands to open another data connection
    for transferring another file. In our example, the QUIT
    command is sent.

  17. The server responds with 221 (service closing) and it closes
    the control connection.


in point 14.

  1. The client sends the file on the data connection. After the
    entire file is sent, the data connection is closed. Closing the
    data connection means end-of-file.

does the client close the data connection?

if so how does it do that. just disconnects! or sends a disconnect command using the control connection?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:18:59+00:00Added an answer on May 16, 2026 at 1:18 am

    The default transmission mode is STREAM. On a stream file upload, the data connection is just closed. No command is sent. Just close the connection.

    If you were to send a command, whatever you sent would be appended to the file.

    The stream mode is unreliable because there is no EOF marker. Also, you must reopen the connection for each additional file. It is better to use BLOCKED or COMPRESSED for reliability and will improve performance when sending multiple small files, though there is a small overhead for the protocol.

    Use the MODE command to set the transmission mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After having read Ian Boyd 's constructor series questions ( 1 , 2 ,
I'm in the process of porting some code from Linux to Mac OS X.
I am attempting to pull some information from my tnsnames file using regex. I
I'm trying to build a Chrome browser extension, that should enhance the way the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.