I have the following ftp-script that I am execution on a Windows Server 2008:

open servername
username
xxxxxxx
cd folderABC
put "C:\data\myfile.zip"
quit

I can connect and change folders, but when it reaches the put command it ends after a few seconds with the following message: "425 Unable to build data connection: Connection timed out".

I already tried to deactivate the firewall -> still not working.

I tried to change the script to use passive mode:

open servername
username
xxxxxxx
quote PASV
cd folderABC
put "C:\data\myfile.zip"
quit

I am still getting this error. What could be wrong?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.