|
Steven: I THINK there is a FTP subcommand called PORT. You may have to run it using QUOTE PORT, or QUOTE SITE PORT. I am not sure, but something in the old memory seems to make me think you can do this. Hope it points you in the right direction. cjg Carl J. Galgano EDI Consulting Services, Inc. 550 Kennesaw Avenue, Suite 800 Marietta, GA 30060 (770) 422-2995 - voice (419) 730-8212 - fax mailto:cgalgano@xxxxxxxxxxxxxxxxx http://www.ediconsulting.com AS400 EDI, Networking, E-Commerce and Communications Consulting and Implementation http://www.icecreamovernight.com Premium Ice Cream Brands shipped Overnight "You ain't gonna learn what you don't want to know" - rw -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Steven.Gray@xxxxxxxxxxxxxx Sent: Thursday, June 12, 2003 12:38 PM To: midrange-l@xxxxxxxxxxxx Subject: FTP data port All, I know that by default FTP uses port 21 as the command port and port 20 as the data port. I am trying to send data to an external server via an As400 FTP connection (OS/400 V4.5). Unfortunately for me they have certain restrictions. These being :- a. The command port must be port 10021 b. The data port must be port 10020 c. Passive mode must be OFF. d. PORT mode must be ON. Now I can connect to the server 192.168.36.2 10021 which allows me to connect using command port 10021. >From this I can run the commands SENDPASV 0 - turn off passive mode SENDPORT 1 - turn on port mode but as soon as I try to put or get data the error message '425 can't build data connection: connection timed out' appears. The connection is going through a firewall , which has been examined , and all that is shown is the initial connection over port 10021. No mention of port 20 or 10020 appears. I think this may have something to do with the data port 10020 not being correctly set on the AS400.But how do I do this ? Looking at WRKTCPSTS option 3 shows my local port 21 in the list at a listen status , but no port 20. When the connection is active , remote port 10021 is displayed against the customers IP address , but no port 20 or 10020. Is this the problem? If so how do I correct this and are there any security issues that I should be made aware of if port 20 or port 10020 are open?
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.