Page 1 of 1

Ports when making request to external API from IBMi

Posted: Thu Sep 19, 2024 11:26 pm
by Joerg Hamacher
Hi,

which IBMi ports are used when making an HTTPS request to an external API via #HTTP_Request.DoPost Url(#w_URL.Trim)?
The same port that is defined in Web Administrator's Maintain System window or any standard ports?
Or are the ports defined in a conf.file?

Best rergards,
Joerg

Re: Ports when making request to external API from IBMi

Posted: Fri Sep 20, 2024 12:08 am
by KEC
The source port used is supplied by the operating system. The remote port will be what the URL is using - normally 80(http) or 443(https).

Re: Ports when making request to external API from IBMi

Posted: Fri Oct 11, 2024 12:12 am
by craig-bdk
I'm also interested because Port 80 on our IBMi is used by a different web instance.

How do I configure the Port# on the IBMi to listen to a different port (e.g. Port 81) when Publishing an API?

Does anyone have an example config for publishing APIs directly from the IBMi (no Windows server frontend)?

Configuring Port#, Character Set, etc.

Thx

Re: Ports when making request to external API from IBMi

Posted: Fri Oct 11, 2024 5:03 am
by adale
Craig,
I believe Jeorg's request is when the IBM i is the "client" making an outbound request for data.
But it your question, I think you are implying the IBM i will be the "server" side of the request. Up till now, we were always told you had to have a Windows server frontend (which we did not want to do), so we did all of our server API work in CL/RPG and ran directly from the IBM i apache web services.
I have submitted a support case and have made inquiries to my Lansa sales rep to get more information and details, as it looks like EPC 150070 will solve this issue, and no longer require the Windows frontend server.
I will post a follow up once I can get an answer from Lansa support or my sales rep.

Re: Ports when making request to external API from IBMi

Posted: Sat Oct 12, 2024 4:07 am
by craig-bdk
HI,

I did get this working today.

After applying EPC 150070 and restarting the TCP server, everything is working DIRECTLY to/from the IBMi (Model A config).

Also when checking in the Server Module(s), if required, the ../run/conf/webmodules.conf file on the IFS is also updated correctly!

Craig.

Re: Ports when making request to external API from IBMi

Posted: Sat Oct 12, 2024 11:41 pm
by adale
Craig,
That is great news. Are there instructions on how to set up this new feature? I will look at getting 150070 downloaded and installed, but did not see any docs on how to setup or config this?

Re: Ports when making request to external API from IBMi

Posted: Wed Jan 29, 2025 12:18 pm
by dgillette
Hi Joerg,

Did you solve your issue by applying the epc 150070 only or did you have to follow other procedures?

Cheers