Topic "Trying to access FTP behind a firewall"

Author Message
[View user's profile]

Joined: 2015-04-21
Posts: 1
Location: Uruguay
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: 24755
Location: Prague, Czechia
Please read documentation:

If that does not help, come back.

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