× 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.



Gio,

Computers (nearly) always have more than one IP address.

So the question is:  What do you mean by "the system IP address"?

Do you mean this in the context of a particular TCP/IP connection?  If so, this would be the local IP address of that connection.   If you're referring to a TELNET connection, you should be able to get this from the connection attributes in the device description.  If you're referring to an HTTP connection, it can be retrieved via an environment variable.  If you're writing your own TCP/IP software using the socket API, there's a function you can call to get the address.

If you don't mean this in the context of a particular connection, then there will be multiple addresses to choose from.  One for each network interface on the system, including the loopback interface (which is always there, and always 127.0.0.1).  In that case, how do you know which one is the canonical address?

Most software I've seen determines this canonical address by looking up the local host name, then doing a DNS lookup on that host name.  This isn't perfect because it requires a reliable DNS lookup of the local name -- but its the best you can do, since there is no setting for the canonical IP address, only the canonical host name.

Please take some time to think about what you're asking us, and explain it in proper detail.

-SK


On 3/22/2020 10:36 AM, gio.cot via RPG400-L wrote:
Hi all

I'm looking for an example to retrive System (As400) IP address ; can some
help me ?

Thanks in advance

Gio




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.