This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes FTP Task giving Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "FTP Task giving "Connection timed out: connect" Error" Watch "FTP Task giving "Connection timed out: connect" Error" New topic
Author

FTP Task giving "Connection timed out: connect" Error

sasank ch
Greenhorn

Joined: Nov 07, 2007
Posts: 25
Hi All,

I am uisng ftp task to copy local files into Remote System and ftp task as follows:
<target name="copyFileToRemoteFTP">
<ftp server="${host}" userid="${userid}" password="${password}" remotedir="/pub/incoming" port="21" >
</ftp>
</target>


When i run the above target copyFileToRemoteFTP , it is giving me the following errror:
error during FTP transfer: java.net.ConnectException: Connection timed out: connect

But i am able to get and put using command line FTP:
c:\>ftp hostmachine

Could anybody please help me to solve this problem. It would be great help to me

Regards,
Sasank
 
 
subject: FTP Task giving "Connection timed out: connect" Error
 
Similar Threads
Remote deployment to a unix server using FTP task in ANT
ANT FTP task: Software caused connection abort: connect
Fetching code from Serena [Version control] using ANT tasks
Connection is closed by foreign host given by Ant SCP task
unable to create directory using ftp task