I am using this code for connecting to an SFTP server:
var connectionInfo = new PasswordConnectionInfo(txtHost.Text, 22, txtUsername.Text, txtPassword.Text, ProxyTypes.Http, "209.xx.xxx.xxx", 3128,"proxyUser","proxyPass");
sftp = new SftpClient(connectionInfo);
try
{
sftp.Connect();
addItemToListBox("Connect", "Connect to server Success.");
BeginInvoke((MethodInvoker)delegate()
{
connect_state(false);
});
connection_flag = true;
}
catch
{
addItemToListBox("Connect", "Connect to server failed.");
addItemToListBox("Connect", "Try agine.");
connection_flag = false;
}
Now, when sniffing my connection with Wireshark, I can see the HTTP request, including the SFTP server IP address.
How can I hide the SFTP server IP address from the proxy server?