Re: Error connecting for client (General questions)
Mike,
code looks ok to me, I have no ideas why it wouldn't work. SFTP uses only port 22, so this is ok too.
Do you run this as a windows service perhaps? Maybe your local windows firewall prevents you from going out?
Kreso