Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP TIMEOUT problem

5 views
Skip to first unread message

Richard White

unread,
May 24, 2004, 7:58:04 PM5/24/04
to
I'm trying to connect to an AS/400 (running V4R5) using FTP.

I *HAVE* done this before on this system, though not for many months .... and now I get timeouts.

I'm using a Windows FTP program (which works with other servers!) to connect using a non-standard
port no. 421.

So far so good: the FTP log on the PC shows a successful connection, password accepted, and logged
on to an AS/400.

The first problem is then there is an error line (in PC log):-
"500 Subcommand FEAT not valid"

?? What's FEAT when it's at home?????

It then correctly changes the Current 'Directory' (ie. Library) to the one of my choice.

Then things really go wrong - I get:

200 PORT subcommand request successful.
LIST
425 Not able to open data connection.
PASV
227 Entering passive mode .......
connecting to data channel ......
connection timed out; the connection timed out while waiting for a response from the server.

I have also tried connecting in passive mode. In this case I get a similar error sequence.

Does anyone have any idea why after successfully connecting I can't list the library contents?
It contains only ONE file!!!

Many thanks.

Philippe

unread,
May 26, 2004, 10:51:16 AM5/26/04
to
Hi Richard,
Can you show us your ftp script ?

"Richard White" <whi...@gmx.co.uk> a écrit dans le message de news:2hfgocF...@uni-berlin.de...

Richard White

unread,
May 26, 2004, 11:04:43 AM5/26/04
to

"Philippe" <nospam.ca...@hotmail.com> wrote in message
news:L92tc.47336$zm5....@nntpserver.swip.net...

> Hi Richard,
> Can you show us your ftp script ?
>
[...snipped...]
Apart from connection and changing the current directory it's as below. That's all that there is
before it hangs for a minute and then gives error code 425 "Not able to open data connection".

In the "DOS" FTP window I type
FTP
OPEN xxxxxxx 421
{enter user id and password as prompted}
BIN
CD yyyyy <- change dir; completes OK

Every works until such time as any data needs to be passed to the PC, when the hang and timeout/425
error occur.

Does the AS/400 use extra ports besides the FTP port (21, or 421 in my case!)??

Philippe

unread,
May 26, 2004, 11:31:55 AM5/26/04
to
Try using port 21 (standard ) instead. What's running on port 421 on as400 side ?


"Richard White" <whi...@gmx.co.uk> a écrit dans le message de news:2hjqmoF...@uni-berlin.de...

Richard White

unread,
May 26, 2004, 1:55:17 PM5/26/04
to

"Philippe" <nospam.ca...@hotmail.com> wrote in message
news:TL2tc.47344$zm5....@nntpserver.swip.net...

> Try using port 21 (standard ) instead. What's running on port 421 on as400 side ?

Port 21 is not available. The network gateway directs that to another system, and 421 to the
AS/400.

Likewise, I have used 423 for TELNET and Client Access 5250 emulation. This works fine, along with
the rest of Client Access apart from Network Drives. It's only the Client Access network drive and
the FTP function I have a problem with.

However, apart from whinging about non-functional network drive support (see below), what I really
need is FTP.

Does the AS/400 use any ports other than 21 (or 421 in my case) for FTP? Would other ports being
blocked be responsible for the "425" error message?

Thanks
Richard

PS: Network drives I just can't ever get to work for some reason over anything other than a local
LAN connection. They don't work over the internet, and they don't work over a direct dial up to a
PPP line. No matter what I try, IP address or what, I can never "find" the path to the remote
system to map a network drive.

(NB: Networking drives used to work fine until IBM dropped it from CA/400 and bolted on to NETBIOS!)

Philippe

unread,
May 27, 2004, 5:06:08 AM5/27/04
to
Richard,
Both ports 20 and 21 are used for FTP.
Is there a firewall or router between the client and the AS/400 machine ? On the AS/400 enter FTP localhost and see what happens.
Check WRKSRVTBLE. It will give you a list of all available ports but you'll have to scroll-down to find FTP.
Check also NETSTAT OPTION(*CNN) to check what's running on FTP and 421 ports.
Check CFGTCP (4. Work with TCP/IP port restrictions) if there are restrictions and check also via : CHGFTPA + F4
hth -- Philippe


"Richard White" <whi...@gmx.co.uk> a écrit dans le message de news:2hk594F...@uni-berlin.de...

0 new messages