CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    51

    Active FTP vs. Passive FTP

    I know the difference between active and passive FTP (there's an excellent definition here: Active vs. Passive FTP), but what I want to know is: Is there a way to determine what is set up on the server you are on?

    I have a monitoring client that we install at our customer sites; it send us server information and logs via FTP. As part of the set up, I have the installer run an FTP test - it makes a connection and transfers a file. The test assumes active FTP and sets a two minute timer; if the timer goes off, then it retries using passive (if both fail, then there's a whole different issue).

    This seems slow -- there should be a way to determine before the test how FTP is configured. Does any one know a way?

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Active FTP vs. Passive FTP

    You mean whether the FTP server allows active FTP or not ?? I believe all FTP servers always allow both the types, it's just the client side firewalls which block active FTP's incoming connections. So it's like knowing if your n/w allows incoming connections from outside, am I getting it right ?
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: Active FTP vs. Passive FTP

    Yes, that seems right. Passive vs active FTP is an issue of the network architecture on the client side. Passive addresses the situation where the client side would not allow new incoming connections from the FTP server, for whatever reason (usually firewall or NAT).

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured