Tuesday, November 9, 2010

SocketException Connection reset on windows 7

While trying to recreate a development environment for a Java Web application on my new laptop with Windows 7, I encountered the dreaded SocketException Connection reset exceptions.

I spent hours overlooking my configuration for the application ensuring that everything was the same as my existing development environment at work but I couldn't find any reasons for the error.

After much investigation and research, I stumbled upon an article where somebody else had experienced similar problems on the Windows 7 OS here:

http://stackoverflow.com/questions/2370388/socketexception-address-incompatible-with-requested-protocol

This gave me the idea that I should probably try disabling support for IPV6
http://support.microsoft.com/kb/929852

After disabling it, I no longer encountered the errors!!

I must admit, so far using windows 7 hasn't had many issues until now. But this has caused me much grief and I'm just relieved to have finally worked it out.

1 comment:

  1. Hi,
    I found your post is very informative. The article is professionally written and I feel like the author knows the subject very well.Keep it that way.will we talk in this weekend through the email?? Pls Let me know that. Promise that i 'll not take too much time from you.

    Nick
    E:- hire.netprogrammer.com@gmail.com

    ReplyDelete