Port command failed with FTPAPI v2.3

Discussions related to FTPAPI (An FTP client package for RPG programming.) http://www.scottklement.com/ftpapi/
Post Reply
Frank Breitbarth
Posts: 1
Joined: Fri Jan 14, 2022 1:00 pm

Port command failed with FTPAPI v2.3

Post by Frank Breitbarth »

Hello everybody,

we are using an AS400 with V7R4 and the FTPAPI v2.3 to send and receive EDI files via GXS. During the last couple of days some EDI files can't be received by the AS400 as we are getting the error message "PORT command failed - try using PASV instead". Should I try to enable passive FTP mode during the connection or could there be another problem? The error message doesn't arrive every time,but for some file transmissions from GXS to the AS400.

I also noticed that there's a new version of the FTP-API. What are the enhancements or fixes of version 2.4?

Best regards
Frank Breitbarth
Scott Klement
Site Admin
Posts: 635
Joined: Sun Jul 04, 2021 5:12 am

Re: Port command failed with FTPAPI v2.3

Post by Scott Klement »

If you download version 2.4, there is a member named CHANGELOG in it that tells what has been changed.

The error message you cite is typically caused by a firewall not allowing FTP on certain ports in the ephemeral range. Have you tried passive mode like it suggests?
Post Reply