× 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: Batch FTP
  • From: SHISHIRKSINGH <SHISHIRKSINGH@xxxxxxx>
  • Date: Fri, 11 Feb 2000 10:13:08 +0530

The scenario is like this :

I have a PC IP '192.168.45.90' to which I will be doing FTP from
AS400(LOOPBACK is the local host - 127.0.0.1).

I can do it in 2 ways, 

a) FTP RMTSYS('192.168.45.90')

        and then in the command input file the code will be 
                zzzzzz aaaaaaa
                PUT .....
                ---------
                CLOSE   
        
        where zzzzzz is the user and aaaaaa is the password

b) FTP RMTSYS(LOOPBACK)
        and then in the command input file the code will be something like
this :

                XXXXXXX **********      -> This is the dummy login/Password 
                close                           
                OPEN '192.168.45.90'
                USER  zzzzzz aaaaaa
                PUT ....
                -------
                -------
                CLOSE   
                
        
I have the 2nd method being used at lot of places. Is there any specific
advantage of using the 2nd method?

But then 1st method gives me more flexibility as far as FTP server IP
address is concerned. Is there any security aspect involved?  IBM manual too
does not say much other than stating that these are the 2 ways of doing it. 


Thanks
Shishir

-----Original Message-----
From: Jim Langston [mailto:jlangston@conexfreight.com]
Sent: Friday, February 11, 2000 2:40 AM
To: MIDRANGE-L@midrange.com
Subject: Re: Batch FTP


you mean what is the difference between typing:
FTP 'LOCALHOST'
versus
FTP '127.0.0.1'
or
FTP '183.234.32.53' (if that is your public IP of your AS/400)

There is actually no difference once you get into the FTP server.
There might be a difference in a few milliseconds for it to resolve
LOCALHOST to 127.0.0.1.

Personally, I type ftp 'localhost' as it's much easier to type than
ftp '127.0.0.1'.

Regards,

Jim Langston

SHISHIRKSINGH wrote:

> Hi,
>
> Is there any specific advantage of using LOOPBACK in FTP or STRTCPFTP
> instead of
> using IP address directly in the command?
>
> Thanks
> Shishir

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

Follow-Ups:

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.