|
Terry, Since the iSeries could have multiple interfaces, it could have more than one IP address. You can use the QtocLstNetIfc API to retrieve a list of the interfaces and then go through the list and check each interface's status to see if it is active. The subset of active interfaces would represent all the IP addresses that the iSeries could respond to. I'm not sure what happens in the case of PPP (dialup) connections. But maybe you're more interested in a function such gethostbyname to see what DNS and/or host table thinks your IP address is supposed to be. Maybe you could tell us a little more about what your program needs to do. -Marty ----------------------- Subject Programmatically Pull the IP Address of The iSeries Greetings List, Is there a way of programmatically pulling the IP address of the iSeries? I have found tons of examples that pull the address of an attached device, but none that pull the address of the iSeries itself. I thought I could use RTVNETA, but that doesn't seem to work. Is there another command or API that I can use to get this? We are on V5R3. Thanks, Terry Anderson
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.