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