And if that doesn't work, and you can netstat and find the job, then do 
that from the job that does the upload and find it's own job.

Rob Berendt
-- 
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





michael@xxxxxxxxxxxxxxxxxx 
Sent by: midrange-l-bounces@xxxxxxxxxxxx
01/04/2005 07:27 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Subject
RE: Retrieving remote IP address






I believe the QtocLstNetCnn would work for you. Check out
http://www.think400.dk/apier_1.htm#eks0038


> -------- Original Message --------
> Subject: Retrieving remote IP address
> From: Peter.Colpaert@xxxxxxxxxx
> Date: Tue, January 04, 2005 5:49 am
> To: midrange-l@xxxxxxxxxxxx
> 
> Hi group,
> 
> I have a tricky situation that I'm trying to solve, without success so 
> far.
> 
> We have a client-server package that runs a batch job for each user 
> connected to the iSeries (V5R1M0).
> 
> Sometimes, the user needs to download a document from his 'home' server, 

> the location of which is kept in a user file.  These documents are 
> replicated to several different servers located around the globe.
> 
> There are a number or roaming users, and when they are working away from 

> home, the system should of course refer to the closest server, which may 

> or may not be their usual 'home server'.
> 
> My idea was to have the job retrieve the user's IP address, which will 
> beyond doubt identify the location from where the user is logged in, and 

> the closest server.
> 
> I know how to do this for an interactive (5250) session, but there's no 
> device description associated with these batch jobs so that approach 
> cannot be used.
> 
> We are always certain of the local port used by the application, and of 
> course we know the job name & number.
> 
> Is there any way - using an API - to retrieve the remote address 
> associated with a certain local address / job combination in the TCP/IP 
> connections?
> 
> When looking at NETSTAT *CNN, I can do a subset by local port, and then 
> look at the jobs associated with each remote address, but I need to do 
> this from within a program.
> 
> Thanks in advance!
> 
> Peter Colpaert
> Application Developer
> Massive - Kontich, Belgium
> -----
> Yoda of Borg are we.  Futile is resistance, assimilated will you be.
> -----
> -- 
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.

-- 
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.