Page 1 of 1

Localhost on different browers - help!

PostPosted: 11. January 2009 20:24
by hdensley
I've noticed that "localhost" works on Opera, but not on IE 7, Firefox, or Chrome. On the latter three, 127.0.0.1 works. Why is this? and what can be done to resolve?
I'm running Vista Ultimate edition, on a Intel Quad Core Q6600.

Thanks

Re: Localhost on different browers - help!

PostPosted: 11. January 2009 22:40
by Izzy
Drag this file into your text editor (for example notepad):
C:\Windows\system32\drivers\etc\HOSTS
It has no file extension.
In Vista you will need to need to be logged in as an administrator to edit this system file.

Try commenting out this line:
::1 localhost

so it looks like this:
# ::1 localhost

Save the file and try again to access http://localhost and please post back if it helps.
Thanks.

Re: Localhost on different browers - help!

PostPosted: 12. January 2009 01:31
by hdensley
Bingo!!! This works. For those of you having problems with getting localhost to work, try the above, and use the below to enable the admin account, in order to make the necessary changes:

http://www.winvistaclub.com/t12.html

Re: Localhost on different browers - help!

PostPosted: 12. January 2009 01:52
by Izzy
Great news! ...and thanks for the link which I am sure will help other Vista users. :D