I am trying to download a file from a FTP server with Java. It only works when I disable the windows Firewall, I’m using windows 7.
Does anyone know a trick to solve this ? I would like my download to work with PC and MAC.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Try to switch to passive FTP and see if that helps. How you do that depends on the library and/or server that you are using.
Passive protocol is more forgiving when it comes to firewalls if the server is properly configured.
Read more about passive and active FTP protocols on http://slacksite.com/other/ftp.html and http://www.rhyshaden.com/ftp.htm
Hope it helps.