Operating System - HP-UX
1821584 Members
3498 Online
109633 Solutions
New Discussion юеВ

426 Data connection: Connection reset by peer

 
TS KARTHIKEYAN
Occasional Advisor

426 Data connection: Connection reset by peer

Hello Helpers,

In my java application, after taking backup of files and put those files into a tar file. after that i need to do ftp that tar file.

During FTP, i receive this error msg like "426 Data connection: Connection reset by peer"

but if i try this ftp transfer of this file with separate java program, its working fine. transfer completed successfully.

please let me know how to resolve this issue.

2 REPLIES 2
Sorrel G. Jakins
Valued Contributor

Re: 426 Data connection: Connection reset by peer

error 426 means that your program thinks it got a TCP RST from the remote end. It could also be a firewall issue, but I doubt it.

Reply with your ftp log, so we can help you better.

Try sending
passive
as your first ftp command

(here is a tutorial on passive FTP):
http://www.slacksite.com/other/ftp.html

If you still don't get anywhere, repost your query to the HPUX Sysadmin area of this forum.

HTH
Sorrel Jakins, Brigham Young University.
skt_skt
Honored Contributor

Re: 426 Data connection: Connection reset by peer

man ftpd and look at timeout options -t and -T