Localhost on different browers - help!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Localhost on different browers - help!

Postby hdensley » 11. January 2009 20:24

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
hdensley
 
Posts: 2
Joined: 11. January 2009 17:55

Re: Localhost on different browers - help!

Postby Izzy » 11. January 2009 22:40

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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Localhost on different browers - help!

Postby hdensley » 12. January 2009 01:31

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
hdensley
 
Posts: 2
Joined: 11. January 2009 17:55

Re: Localhost on different browers - help!

Postby Izzy » 12. January 2009 01:52

Great news! ...and thanks for the link which I am sure will help other Vista users. :D
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests