This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP Task giving "Connection timed out: connect" Error  RSS feed

 
sasank ch
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!