Pages

Monday, April 30, 2012

Using Apache Commons Net FTPClient on AWS EC2 instances

Just a quick note about using the FTPClient from an EC2 instance. You need to change to passive mode on the client. To do that, immediately after connecting to the remote FTP server but before logging in, invoke the enterLocalPassiveMode() method on the FTPClient instance. This had me confused for a while, which isn't difficult to do and seems to happen often.

12 comments:

  1. Tks, this post help me a lot.

    ReplyDelete
  2. I was missing the enterLocalPassiveMode, after adding that it worked. But I could add it after the login and it did still work. Thanks

    ReplyDelete
  3. this blog is informative.It has a information about the appache commons and this details.It is a innovative information.Clearly explain the details about the appache.


    java training in chennai

    ReplyDelete
  4. Good read. Thanks for sharing it!
    Máy lạnh Daikin

    ReplyDelete
  5. Thanks for your post!
    You saved my time!

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Thanks for providing this information. It's very helpful.
    Visit Best Astrologer in Rajanna Sircilla

    ReplyDelete
  8. Very beautifull blog post,Thank you.
    visit here
    Sofa Refurbishing in Bannerghatta Road

    ReplyDelete
  9. Thank you for the great post!

    abhiram astrology center. Best Astrologer In devanahalli

    ReplyDelete
  10. Very nice article.
    Refrigerator Repair in Bangalore. At your doorstep in low cost.

    ReplyDelete