Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've seen similar questions, but couldn't find any answers for my problem.

I'm using Windows 7 and Wamp for website development, and it was working fine until a couple of days ago. Now it won't let me connect to localhost or 127.0.0.1. My hosts file was missing, so I made a new one with the line "127.0.0.1 localhost".

I'm able to ping localhost and 127.0.0.1 no problem. I used netstat and confirmed that Wamp is using port 80. Wamp says it's online. I have this error message in my Apache error log:

(OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?

share|improve this question

1 Answer 1

A couple of things you can try:

  1. Execute netsh winsock reset.

  2. Add ::1 localhost to your hosts file (loopback for IPv6).

share|improve this answer
    
That seems to have done the trick, any ideas what caused this problem all the sudden? –  Andrew Dec 21 '11 at 18:28
    
Your winsock catalog got modified somehow, but I can't tell you how or why. –  Dennis Dec 21 '11 at 18:43
    
Also, I just found out that Windows 7 handles loopback internally, so the localhost entries in your hosts file are obsolete. –  Dennis Dec 21 '11 at 18:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.