SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

SftpClient, ability to set ClientIpAddress

Open itssimple opened this issue 8 years ago • 3 comments

If you use the SftpClient on for example a webserver with multiple IP addresses, we need to be able to set which IP-address to connect from.

var ftp = new SftpClient(new ConnectionInfo(and, so, on, and_on));
ftp.ClientIpAddress = "external_ip_address_here";
ftp.Connect();

This would help us connect to SFTP-servers with limited IP-access.

itssimple avatar Dec 15 '16 08:12 itssimple