× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



RPG via 5250 gives my PC IP.


Dcl-s ipaddress char(52);

exec sql set :ipaddress = sysibm.client_ipaddr;
Dsply ipaddress ;


*inLR = *on;
Return;


-----Original Message-----
From: Justin Taylor [mailto:JUSTIN@xxxxxxxxxxxxx]
Sent: Monday, March 23, 2020 11:15 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: Retrive System IP address

Does that apply to RPG running in batch, 5250, CGI and external stored procedure?



-----Original Message-----
From: John Yeung [mailto:gallium.arsenide@xxxxxxxxx]
Sent: Sunday, March 22, 2020 1:18 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: gio.cot <gio.cot@xxxxxxxxxxx>
Subject: Re: Retrive System IP address

On Sun, Mar 22, 2020 at 1:44 PM gio.cot via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

But this "sysibm.client_ipaddr" return the client ip .. i would need
to retrive the Host/Sistem Ip

For most people, if they are writing an RPG program, the client and the server are the same.

Is your RPG program talking to a different IBM i system?

John Y.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.