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


  • Subject: Re: API to retrieve TCPIP address of the client?
  • From: Chris Rehm <javadisciple@xxxxxxxxxxxxx>
  • Date: Fri, 08 Jun 2001 14:36:02 -0700
  • User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20010131 Netscape6/6.01


Well, if the intent is to retrieve a file from the AS/400 based on a 
selection made via file, there might be a couple of other considerations.
What if the client doesn't have an IP address? I think you'd want to 
check and see if you are being run by a dumb tube before you run your 
app. Then you need to push your file, which will require the workstation 
to be ready to receive it by running some hosting app (ftp, CA, etc.).

I would think it would be a lot simpler to write a pc based app (say, in 
Java) that fetches the file list, and then issues an ftp request from 
that app. But that's all guesswork from someone who just doesn't know 
the real problem.

One reason I like the idea of using Java for such a task is that the 
same app that makes the SQL request to fetch the list of files can also 
thread the ftp request and save the file to the local machine, so any 
machine which can run the app, is qualified to run it. No need to worry 
about requesting IP addresses or if the PC making the request can 
receive a pushed file.

Hatzenbeler, Tim wrote:

> i'm sure you are aware of this, but just incase... you'll need an ftp 
> server running on your pc's so it can accept the file your as/400 will 
> be sending it...
> 
> if anybody else has a better way? I would love to know about it....
> tim
> 
>       -----Original Message-----
>       From:  ron hawkins [SMTP:hwarangron@home.com]
>       Does anybody know how to retrieve the tcpip address of a pc 
>       attached to the
>       400? I need to do it programatically - that is the user selects 
>       a record
>       from a subfile and the program will FTP the file (represented by 
>       the record
>       in the subfile) down to the PC.
>       

-- 
Chris Rehm
javadisciple@earthlink.net


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

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.