How to get the correct IP address for FTP purpose using CMD



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

How to get the correct IP address for FTP purpose using CMD

Postby raisaldanha25 » Sat Mar 03, 2012 10:32 pm

I am trying to use command prompt to download a file from Mainframes to my PC. (FTP purpose)
I need to connect to mainframes first from command prompt.
For that I open cmd and then enter the following command
FTP XX.X.XXX.XX
where XX.X.XXX.XX is the mainframe ip address that we use.
But i get the following error message connect: Unknown error

I need to know how to determine the correct ip address.

I have tried using the PING SYSA command from start 6 option in mainframes. But this too gives me an error message saying 'Unknown Host' .
(I found this solution from Google)

So is there any other method to find the correct ip to connect?
raisaldanha25
 
Posts: 4
Joined: Wed Feb 01, 2012 10:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to get the correct IP address for FTP purpose using

Postby enrico-sorichetti » Sat Mar 03, 2012 10:40 pm

So is there any other method to find the correct ip to connect?

the only legal and safe method is to ask those who know Your support

I was going to add
a reasonable but not 100% legal and safe method is to look at the IP address used for the 3270 emulation


but I guess that
where XX.X.XXX.XX is the mainframe ip address that we use.

You already tried it
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3002
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: How to get the correct IP address for FTP purpose using

Postby raisaldanha25 » Sun Mar 04, 2012 11:10 pm

Thanks Enrico for your reply.
I will still try to get a solution and will share once i get it.
raisaldanha25
 
Posts: 4
Joined: Wed Feb 01, 2012 10:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to get the correct IP address for FTP purpose using

Postby Robert Sample » Sun Mar 04, 2012 11:29 pm

Your site support group should be the ones to ask, not a forum -- as enrico indicated. One thing to consider is that your site support group may have altered the default port number for FTP for your mainframe (for some reason) so even knowing the correct IP address may not be enough to connect an FTP session. And if the port number was changed, only your site support group (or someone working at your site) could possibly tell you what port number to use.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How to get the correct IP address for FTP purpose using

Postby jaggz » Wed Mar 14, 2012 10:04 am

To know your Mainframe IP just issue the command : TSO HOMETEST and you will find your mainframe IP.
Port that you want to open would be : 20 or 21(Check with your network guru's)
To check if you have got the FTP access, then open up your DOS prompt and issue the telnet command.

HTH
jaggz
User avatar
jaggz
 
Posts: 356
Joined: Fri Jul 23, 2010 8:51 pm
Has thanked: 8 times
Been thanked: 5 times

Re: How to get the correct IP address for FTP purpose using

Postby raisaldanha25 » Sun May 06, 2012 10:14 am

Thanks jaggz for the HOMETEST command. :)
We can get the IP address by issuing the NETSTAT CONN command from Start 6.


jaggz wrote:To check if you have got the FTP access, then open up your DOS prompt and issue the telnet command.


I did not get the telnet part :? . Could you explain me on how to check for the FTP access using the telnet command. It would be great. Thanks.
raisaldanha25
 
Posts: 4
Joined: Wed Feb 01, 2012 10:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to get the correct IP address for FTP purpose using

Postby dick scherrer » Mon May 07, 2012 6:27 am

Hello,

As this topic again proves - many of the "things" available on one system may not be available on others.

People who have experience with only one organization often believe that something they use is available everywhere. . .


How might telnet help find the ftp ip address?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to get the correct IP address for FTP purpose using

Postby steve-myers » Mon May 07, 2012 9:25 am

dick scherrer wrote:...How might telnet help find the ftp ip address?
Beats me! Sometime in the late 1990s - probably '98 - I did a telnet to an FTP server. I don't recall why I did this, but I did it.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How to get the correct IP address for FTP purpose using

Postby raisaldanha25 » Tue May 08, 2012 10:53 am

Nope.. its not about believing that something will work everywhere. Its just a learning process. There are so many people with so many ideas out there. These forums are meant to share your findings and to learn from them ...Right ?

If others techiniques help us then well and good. If not its Okay.

And jaggz did mention that we can check for the "FTP ACCESS" from telnet, so i was curious to know about it.
raisaldanha25
 
Posts: 4
Joined: Wed Feb 01, 2012 10:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to get the correct IP address for FTP purpose using

Postby Ed Goodman » Tue May 08, 2012 8:26 pm

Whoa Nellie!!! When I run the TSO HOMETEST, I get the "wrong" address back.

I get the address for the IP stack to which the mainframe belongs, but it's NOT the right address to use when I try to do an FTP from my PC. Our network is on a different stack, and there are some bridges in between that we need to use.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Next

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post