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'm using a workstation with Windows 7 Pro 64bit; IE version 9.0.8112.16421 (update ver. 9.0.18). I'm using a local facility (WAMP or AMPPS) and a WordPress installation for website testing. I have Apache and MySQL running fine.

But using Internet Explorer, the requests to localhost (127.0.0.1) get no response - not just slow - they never resolve.

The localhost request will resolve successfully only when a second request is made immediately or within a few seconds (like a slow double-click).

Sometimes issuing a refresh (F5) is successful with localhost if done within a few seconds of the first request (especially useful if the selected menu function no longer appears available during localhost page change request). It doesn't seem to be a Firewall issue (whether off or on).

What might be responsible for this behavior? Has anyone else experienced this and resolved it?

share|improve this question
    
A proxy in your setings? –  ott-- Jul 21 '13 at 20:41
    
@ott please explain? –  spainters Jul 21 '13 at 23:32
    
@spainters firewall shouldn't be affecting you on the same machine. 127.0.0.1 should always resolve, no matter what is in hosts--unless IE is set to go through a proxy for everything. Are you sure Apache is running and bound to port 80 (use telnet to check)? –  SlightlyCuban Sep 26 '13 at 18:43
    
I have a similar setup (W7x64P - Lounge VC11 Apache2.4.7) and similar problems. From time to time Chrome, IE and FireFox are very slow on a localhost. They are fine on a remote server. Safari and Opera don't have this problem. I've cut my httpd.conf to the minimum. Tried many things in hosts. Sometimes it hangs forever, and sometimes it hangs for just a long time. By disabling or re-enabling WiFi I can get it to give up. Once I get a page to load it works for a short time again and again, but if I wait a few minutes chances are it will hang again. I must say I'm baffled. –  Eliptical View Mar 9 at 2:48
add comment

1 Answer

It sounds like your host file is corrupt. Navigate to C:\Windows\System32\Drivers\etc\ and find your host file. Check that localhost is listed like so:

127.0.0.1       localhost

And make sure it is not commented out with a "#".

share|improve this answer
    
Thanks, had already done that with no effect. And besides, I believe localhost is resolved by DNS, as of Win7, per MS. Any other ideas? –  spainters Jul 22 '13 at 19:12
1  
Localhost is hardcoded in the windows resolver. No entry in the host file is needed. –  Hennes Sep 26 '13 at 18:28
add comment

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.