# SFTP Error - Connection failed (error code is 11001)

**URL:** https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982
**Category:** Discussion
**Created:** [September 25, 2008, 11:17am UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982 "2008-09-25T11:17:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tony.edgecombe](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tony.edgecombe](https://www.finalbuilder.com/forums/u/tony.edgecombe)
#### Post date: [September 25, 2008, 11:17am UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982/1 "2008-09-25T11:17:48Z")

</div>

I'm getting a "Connection failed (error code is 11001)" error when I try and connect to a sftp site.

My normal ftp client connects on sftp no problem so I don't think there is a problem on the server.

Any ideas on how to diagnose this problem?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 26, 2008, 3:52am UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982/2 "2008-09-26T03:52:26Z")

</div>

Hi Tony   
  
 Error 11001 is a winsock error, usually host not found… could also be a dns issue. Are you sure you typed the host name in correctly. What sftp server are you using?

---

<div class="post-metadata">

### Author: ![tony.edgecombe](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tony.edgecombe](https://www.finalbuilder.com/forums/u/tony.edgecombe)
#### Post date: [September 26, 2008, 10:17am UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982/3 "2008-09-26T10:17:11Z")

</div>

It is a name resolution problem, if I use the IP address rather than the host name it works fine.

&nbsp;

The IP address is in the hosts file so you seem to have a bug with name resolution and the hosts file.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 26, 2008, 11:37am UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982/4 "2008-09-26T11:37:42Z")

</div>

Hi Tony   
  
 I’m not able to reproduce this. I added my home pc ip address to my work pc hosts file (I have a vpn between home and work). Our network dns doesn’t resolve addresses over the vpn. I ran a sftp server (zFTPServer) on my home pc and I’m able to connect just fine using the host name I put in my hosts file.   
  
 Which operating systems are you working with and which sftp servers.

---

<div class="post-metadata">

### Author: ![tony.edgecombe](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tony.edgecombe](https://www.finalbuilder.com/forums/u/tony.edgecombe)
#### Post date: [September 26, 2008, 12:00pm UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982/5 "2008-09-26T12:00:06Z")

</div>

I’ve just done some more testing, I think its a problem with my networking.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 26, 2008, 12:18pm UTC](https://www.finalbuilder.com/forums/t/sftp-error-connection-failed-error-code-is-11001/982/6 "2008-09-26T12:18:10Z")

</div>

Hi Tony   
  
I just uploaded a build which has a a minor fix for a bug with the SFTP actions (design time bug).   
  
[https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1051.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1051.exe)
