prabhat gupta

Greenhorn
+ Follow
since Jun 27, 2007
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by prabhat gupta

I am getting "Software caused connection abort: connect" error when i execute the FTP task in ANT.
I am using the FTP task in Ant and trying to connect to a Windows FTP server in the Intranet via its IP and login details.
the Ant task is as below:

<ftp action="get"
server="10.11.189.21"
userid="Myuserid"
password="MyPassword">
<fileset dir="/temp/docs/designdocs/">
<include name="**/*.doc"/>
</fileset>
</ftp>

I was able to ftp the same server from my windows command prompt by using
C:\ ftp 10.11.189.21
and then giving my userid and password. i was also able to download files from the server.

what could be the reason for this strange error.

I also tried to ftp the server using the java.net package by making a connection using URLConnection and doing IO to download.. but the same error is encountered on calling connect method of URLConnection.

I tried using the SCP task in Ant which is used for connecting to servers running Secured Shell. But since the windows ftp server is not behind any firewall(I checked it) this will not work anyways and it surely didn't.

I need to achieve unsecured FTP connection with the Windows FTP Server.

Please let me know the reasons for the problem and possible solutions.
15 years ago