switching to passive ftp

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Dec 27, 2009
1
0
#1
I'm using 4nt8 & 4nt6, latest versions. I've been using 4nt ftp - it works fine on both of these eg
copy c:\jim.bat "ftp://username:pass@ftp_add/ftp_dir"
copy "ftp://username:pass@ftp_add/ftp_dir/jim.bat" c:\tmp.bat
Guess the sites I've been previously using work for active ftp...

However, I've just started using a site, drive, that _only_ works for passive ftp. I can use it from ws_ftp by selecting passive ftp - it doesn't work for active, so I'm sure my account is ok & the firewalls etc work.

I'd like to be able to switch between using the other active sites that work ok and drive. Seems that the way to do this is using 'option' in line. The ftp help seems to suggest that this is ok, tho' it isn't IMHO very clear. eg
rem access active ftp
....
rem access passive ftp
OPTION //passiveftp=yes
copy "ftp:// etc
....
Is this correct? Did I miss something?

If I can't do this with 4nt, anyone know of a _free_ ftp CL client that'll work for active and for passive ftp? - xp ftp.exe doesn't!

John
 
#2
On Wed, 30 Dec 2009 10:38:57 -0600, johnelee0 <> wrote:

|If I can't do this with 4nt, anyone know of a _free_ ftp CL client that'll work for active and for passive ftp? - xp ftp.exe doesn't!

Did you try QUOTE PASV with FTP.EXE?

It works here.

ftp> quote pasv
227 Entering Passive Mode (128,230,13,36,10,153)
--
- Vince
 
#3
johnelee0 wrote:
...
| I'd like to be able to switch between using the other active sites
| that work ok and drive. Seems that the way to do this is using
| 'option' in line. The ftp help seems to suggest that this is ok,
| tho' it isn't IMHO very clear. eg rem access active ftp ....
| rem access passive ftp
| OPTION //passiveftp=yes
| copy "ftp:// etc
| ....
| Is this correct? Did I miss something?

Using the OPTION command seems correct. However, you would be better
off using the IFTP command (available since 4nt V5, maybe earlier) to
establish the FTP connection, since it results in faster operation.
It also allows you to use the PASV command Vince suggested for use
with WinXP's ftp.exe:

iftp /s QUOTE PASV

if needed.
--
HTH, Steve
 

rconn

Administrator
Staff member
May 14, 2008
10,207
86
#4
johnelee0 wrote:
...
| I'd like to be able to switch between using the other active sites
| that work ok and drive. Seems that the way to do this is using
| 'option' in line. The ftp help seems to suggest that this is ok,
| tho' it isn't IMHO very clear. eg rem access active ftp ....
| rem access passive ftp
| OPTION //passiveftp=yes
| copy "ftp:// etc
| ....
| Is this correct? Did I miss something?

Using the OPTION command seems correct. However, you would be better
off using the IFTP command (available since 4nt V5, maybe earlier) to
establish the FTP connection, since it results in faster operation.
It also allows you to use the PASV command Vince suggested for use
with WinXP's ftp.exe:

iftp /s QUOTE PASV

if needed.
--
You don't need OPTION; just use the IFTP /Pn switch to specify passive or active.