Topic "Trying to access FTP behind a firewall"

Author Message
[View user's profile]

Joined: 2015-04-21
Posts: 1
Location: Montevideo
Hi, I'm using WinScp library SessionOptions with the following code:

SessionOptions sessionOptions = new SessionOptions
Protocol = Protocol.Sftp,
HostName = txtUrlAConectar.Text,
UserName = txtusuario.Text,
Password = txtpasswordftp.Text,
SshHostKeyFingerprint = txtkeydeseguridad.Text

I'm opening session with its options, but how can I set the outgoing firewall values?
I mean, I'm behind a firewall trying to get out and then finally reach the sftp server.
Is there any option in SessionOptions to set firewall username and password? I've already have an open port at that firewall, opened by the Firewall Administrator. I'm just needing to specify those three parameters: username, password and port, when I attempt connection.

Thank you!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Duplicate post:

You can post new topics in this forum


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