General Question

mrdh's avatar

Can access 127.0.0.1 but not localhost?

Asked by mrdh (501points) 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

Vincentt's avatar

What operating system are you on?

philo23's avatar

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.

nightclaw's avatar

“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

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther