Time out when uploading

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
blackgolf
Posts: 7
Joined: 20 Apr 2012 07:20

Time out when uploading

#1 Post by blackgolf » 21 Apr 2012 11:42

Hi
I use a batch file to upload a 1.5 meg file to a server.
It connects fine but I get a 'timed out' error as below;

230 User xxxxxxxxxxxx logged in
ftp> binary
---> TYPE I
200 Type set to I
ftp> put "c:\temp\xyz.zip"
---> PORT 41,241,45,1,209,98
200 PORT command successful
---> STOR xyz.zip
525 Unable to build data connection: Connection timed out
ftp> bye
---> QUIT
221 Goodbye.

Any idea what can be wrong. I can upload perfectly with FileZilla !!! but want to use a batch file.
Regards

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Time out when uploading

#2 Post by foxidrive » 21 Apr 2012 15:52

Try using PASSIVE ftp transfer mode.

I'm not sure but the active mode may not work because the FTP ports (20/21) aren't forwarded to your computer's IP address in the modem/router. Just a guess.

Post Reply