Topic ".NET assembly Sync script and custom FTP Port"

Author Message


Hi all.

I am currently testing the remote to local sync script provided to this link.

What I want is to be able to connect on a custom port. The remote server is running an ftp service but not on 21 port.

In the script there is this:

$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp

is there a way to overcome the named setting and set the port number?

Thank you in advance


Ok, I found it myself Very Happy

Must enter the following

$sessionOptions.PortNumber = "customportnumber"

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License