Hi Mickey,
I don't know the details of the machine you're trying to access, but keep in mind that when you test the connection using WinSCP, it'll create a connection from your local machine. When you test it using SFTP in your app, it'll try to set up the connection from the server.
Regards,
Lennart