Server Fault is a question and answer site for system and network administrators. 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

For some reason my localhost is not recognized.

I have this in my hosts file as I've always had:       localhost
::1             localhost

I did do a flushdns, not sure if that caused it. Then I tried a /registerdns in the command prompt.

I still have the same issue.

share|improve this question
what did you do to know localhost is not recognized? – StampedeXV Apr 26 '10 at 16:46
If you ping localhost do you get – direMonky Apr 26 '10 at 16:49
You didn't mention what web server you are using - did you install Apache or IIS? – Grant Palin Apr 26 '10 at 17:12
in fact he didn't even mention if he was accessing a web server at all. – StampedeXV Apr 26 '10 at 18:06

I thought the problem was resource based in terms of localhost not recognizable across the entire PC..but that was not really the problem it turnes out. The problem was IIS. I uninstalled and re-installed and it's fine now. No clue how this could have happened or what the problem was with IIS

share|improve this answer

Well, as my comment is not answered I try it with guessing:

Maybe you tried "localhost" in your browser? Then you need a running webserver. Maybe you don't have one?

Did you try

ping localhost
  • which IP address is resolved?
  • Is that also not working?
share|improve this answer

Your Answer


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.