Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Sopor

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
martin

@Sopor: The default mode is passive. I do not understand what you mean by the rest.
Sopor

What is default mode if not specify what mode it should use, 2 as in Auto?
martin

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
Jason

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?