Page 1 of 1

Problems accessing localhost [SOLVED]

PostPosted: 24. March 2012 18:05
by The_Antipawn
Cannot access localhost or 127.0.0.1 through my browser

Followed the instructions on a similar topic posted earlier in the forum, that is I added '127.0.0.1 localhost' to the Hosts file, I also cleared my browsers cache.
Any ideas?

Re: Problems accessing localhost

PostPosted: 24. March 2012 23:20
by Sharley
First check in the file \xampp\apache\logs\error.log file and see if the last entries have a [OS10038] error message.

Usually the fix for your no 127.0.0.1 and localhost access is the following which worked for me the other day when I was also baffled by a once working localhost - the log file entry was the clue.

Click on the Start (Orb) in the Task Bar and type:
Run
Click Enter

In the Run box type
netsh winsock RESET
Click OK

The console window will flash then disappear when complete.

I did not have to reboot and was able to then access localhost and 127.0.0.1.

Clear your browser cache (Temporary Internet Files).

Please let me know if the above worked for you.

Re: Problems accessing localhost

PostPosted: 28. March 2012 15:58
by The_Antipawn
Yes, I followed the above (and re-edited the hosts file for good measure), and it worked. Thanks.