• Subject: Re: A program to get the IP address of the Internet connection.
  • From: "Gary Kuznitz" <docfxit@xxxxxxxxxxx>
  • Date: Tue, 23 Nov 1999 23:33:06 -0800

Hi Joe,

Thanks for the code.  This will give the IP address of a PC either local or 
at a remote site.  I'm looking for the IP address of the AS/400 connected 
dynamically to the internet.


Gary Kuznitz

> > Would anyone possibly be willing to share a program that could get the 
> > address the 400 is connected to the internet with? I am connecting to 
> > ISP with dynamic IP addressing.  I'd like to bring the IP address into a
> > program so I can use it to keep the 400 alive and so I can use it to know
> > when I am connected.  I'm on V4R4.
>             PGM
>             DCL        VAR(&DEVD)       TYPE(*CHAR)  LEN(10)
>             DCL        VAR(&IP)         TYPE(*CHAR)  LEN(15)
>             DCL        VAR(&RECEIVER)   TYPE(*CHAR)  LEN(892)
>             DCL        VAR(&LENGTH)     TYPE(*CHAR)  LEN(4)
>             DCL        VAR(&ERRLENGTH)  TYPE(*CHAR)  LEN(4)
>             RTVJOBA    JOB(&DEVD)
>             CHGVAR     VAR(%BIN(&LENGTH))     VALUE(892)
>             CHGVAR     VAR(%BIN(&ERRLENGTH))  VALUE(0)
>                          DEVD0600 &DEVD &ERRLENGTH)
>             CHGVAR     VAR(&IP) VALUE(%SST(&RECEIVER 878 15))
>             ENDPGM
> I can't take credit for this code as I got it from this list on an earlier
> date.
> Joe Teff

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].