A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Hi All,

 I have created a FTP client in ASP.net and it's working fine on my local system but when i deployed this code on Public IP(Remote server) it's not working.Code and Exceptions message are give below.


0 santosh 6/12/2008 7:21:20 AM

Check if the server you are trying to connect to is accessible from your server and there is no firewall blocking it or not added to your DNS  

Hosam Kamel

Remember to click on Mark as answer on the post that helped you
0 HosamKamel 6/12/2008 8:59:33 AM

Please make sure that Firewall and antivirus are not creating problem in connection....



View Blog

linkedin Asp.net Group

Don't forget to click €œMark as Answer€ on the post that helped you
0 sameer_khanjit 6/12/2008 9:02:50 AM

 Hi ,

thanks for quick reply .I can  ping FTP server from Public  IP(Remote Server) address and also there is no firewall blocking.I am not sure about DNS.

Santosh kumar
Mark as Answer on the post that helped you.

0 santosh 6/12/2008 10:11:32 AM

Try to Enabling Network Tracing and trace your connectivity.

Hosam Kamel

Remember to click on Mark as answer on the post that helped you
0 HosamKamel 6/13/2008 12:18:34 PM


Please make sure it is able to connect from the production server to the server specified in ASP.NET application. Run a ping command from command line prompt to the server's IP address or server name to see the results. You should be able to see the results from command prompt which will indicate whether the connection is successful or not.

According to your description, the server might locate in the same machine or in the same intranet. For production enviroment, you might need to have similar deployment. 

Zhao Ji Ma
Microsoft Online Community Support

€œPlease remember to click €œMark as Answer€ on the post that helps you, and to click €œUnmark as Answer€ if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. €
0 Zhao 6/17/2008 7:10:30 AM

(Thread closed)