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

  • SEARCH
  • Home
  • 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 6830435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:37:03+00:00 2026-05-26T22:37:03+00:00

I still have some problems regarding the FTP session between my simple FTP client

  • 0

I still have some problems regarding the FTP session between my simple FTP client written in Java and a proFTP server.

I have connected to the server using passive mode.
When I send the list command I get a response in ASCII of which files that are on the server. If I send the list command again, I don´t get any response. I cannot even get a response from other FTP commands that I send. It seems like the session “hangs”.

Why does my simple java application stop getting replies when sending the list command a second time?

  • 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-26T22:37:03+00:00Added an answer on May 26, 2026 at 10:37 pm

    In FTP, both active and passive modes supply a separate channel for transferring data. Whenever you want to send a command in passive mode that involves the sending of data (e.g. list) you must re-send the PASV to tell the server that you’re about to perform an operation that involves the data connection. The server can then open up a new socket or continue to use the same one.

    Here’s an example session:

    230 Login successful.
    PASV
    227 Entered Passive Mode (123,245,209,137,199,61)
    LIST
    150 Here comes the directory listing.
    226 Directory send OK.
    LIST
    425 Use PORT or PASV first.
    PASV
    227 Entered Passive Mode (123,245,209,137,202,198)
    LIST
    150 Here comes the directory listing.
    226 Directory send OK.
    

    Notice that my second attempt to use LIST failed because I hadn’t opened a data channel. Once I sent another PASV, I was able to use LIST again.

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

Sidebar

Related Questions

I've read some docs about the .NET Garbage Collector but i still have some
im currently learning python (in the very begining), so I still have some doubts
Why can't I browse deeper into the folder, I still have some folders there:
I have some old code (an old but still maintained VB6 application) that from
I still have a large number of floppies. On some of them there probably
I've used ( and still use ) mercurial and git. I have some repos
I have done some work with Ruby on Rails but am still not comfortable
I have read some articles on POCO in the enttity framework but still don't
I have read a lot of topics here regarding xml and tried some, but
No doubt some of you have seen my recent posting, all regarding the same

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.