Page 1 of 1

Port command failed with FTPAPI v2.3

Posted: Fri Jan 14, 2022 1:07 pm
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

Re: Port command failed with FTPAPI v2.3

Posted: Fri Jan 21, 2022 5:11 am
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?