Active/passive mode

Advertisement

Jason
Guest

Active/passive mode

Two questions here:
  1. The active/passive mode option is greyed out.
    WinSCP version 4.2.7
    How to get it back?

  2. How to set active/passive mode in script?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: active/passive mode

Jason wrote:

1. The active/passive mode option is greyed out.
WinSCP version 4.2.7
How to get it back?
You have to select FTP protocol first.

2. How to set active/passive mode in script?
Edit 2023: Since this has been implemented:
Issue 669 – Option to enable active mode with FTP protocol in scripting.
you can use -passive=off switch of the open command to switch to the active mode (the passive is the default):
https://winscp.net/eng/docs/scriptcommand_open#passive

Reply with quote

Sopor
Sopor avatar
Joined:
Posts:
63
Location:
Sweden

So there is no Auto for "passive"?

I read that I can use 0, 1 or 2 instead of on, off and auto. That is why I wrote as I did.
FtpForcePasvIp2 Force IP address for passive mode connections 0/on = On, 1/off = Off, 2/auto = Auto

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum