Can access 127.0.0.1 but not localhost?
Asked by
mrdh (
501
)
January 10th, 2009
I installed XAMPP successfully, but for some reason I can only access it via 127.0.0.1 and not localhost. Anyway I can solve this?
Observing members:
0
Composing members:
0
3 Answers
What operating system are you on?
mmm, sounds like your HOSTS file doesn’t have localhost listed in it. i’m not sure exactly how but i think you just need to add “localhost<tabspacehere>127.0.0.1” and that should make localhost point to 127.0.0.1, and if i remember rightly, the HOSTS file on windows is inside C:\windows\
Good luck.
“Have you tried turning it off and on again?”
seriously switch off the networking in device manager and bring it up again. I can’t think of a way to accidently get rid of the loopback in hosts.
Answer this question 
This question is in the General Section. Responses must be helpful and on-topic.