Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 My hosts file was missing, so I made a new one with the line " localhost".

I'm able to ping localhost and 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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .