[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 425 error




v7r4?  Whoa, dude, are you a time-traveller from the future?!

Anyway, the problem is that it's not able to open the data connection. In order to transfer files or do directory listings, FTP will open a separate connection on a separate port. The client (your computer running FTPAPI) is sending it an IP address and port number, and the server is attempting to connect to that IP/port. The 425 means that it's unable to do so.

The most obvious reason might be that a firewall is blocking access to that port.

I would suggest using passive mode. (FTP_Passiv(*ON)). This changes the direction so that the server sends the IP/port, and the client attempts to connect to that. (So the connection is made in the opposite direction.) This is more likely to be allowed through your firewall.


On 10/8/2013 12:58 PM, Jim Dorsett wrote:
    I am hoping someone can point me in the right direction.  We have been
    using the FTPAPIR4 api with great success until this week. We ftp from
    our iSeries on V7R4M0 to our clients iseries either on V5R4M0 thru
    V7R1M0.  I have one client that we are getting an

    > STOR /QSYS.LIB/QGPL.LIB/TESTFTP.FILE

    425-NAMEFMT set to 1.

    425 Not able to open data connection.


    I have checked their ftp setup  and it appears to be no different than
    other clients I can successfully transmit to.


    What is more confusing. I can start an FTP session directly and mimic
    the code in the api and the file transfers without issue.




-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------