[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Why am I getting "Socket Error #10054" errors from this one computer?

Posted on 2007-10-02
Medium Priority
Last Modified: 2012-08-14
I am getting

  Socket Error #10054
  Connection reset by peer

while trying to FTP a file from a VB6 app from one particular computer that is running Windows XP to our server that is running Windows Server 2003 and IIS 6.0.  If I open 'My Computer' and login to our FTP server and drop the exact same file into the window it comes across just fine.  I am using this exact same VB6 app on many other computer running Windows XP and they all work just fine.

Any ideas?


Question by:Todd_Anderson
LVL 10

Expert Comment

ID: 20002722
According to M$ @  http://msdn2.microsoft.com/en-us/library/ms740668.aspx
this error is a  Connection reset by peer.
An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.

In your case it probably has to do with some of the parameters you're using in VB to setup the ftp connection
LVL 15

Accepted Solution

qz8dsw earned 1000 total points
ID: 20002754
As per http://www.experts-exchange.com/Security/Q_20623194.html
More than likely the application is using a port that is being blocked by the machines own firewall.

Check the application settings in the firewall and compare it to a machine where it works, more than likely on one that works there will be an exception for your program setup.


Author Comment

ID: 20010860
Thanks Terry.  Since this same piece of software works everywhere it is installed except for this one computer I suspect that you are right.  I was focusing on the server since the message seemed to point to the server but this makes a lot more sense.


Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question