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