Localhost issue

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

Localhost issue

Postby Zenko » 27. November 2008 21:25

So I've been using xampp for quite a while now I am running vista and everything has been working fine until now.

My http://localhost has been working perfect until recently...

None of my browsers will connect to my localhost except Opera. I tried with FireFox 3, ie7, Safari 3.2.x and google chrome.

These are the things I have done to my PC that might give you an idea and possible help find a solution.

-I ran winASO registery optimizer to clean my registerys
-Unistalled kaspersky and installed NOD32 anti-virus

My problem is that I can't access my localhost (http://localhost) and I have turn on all servers even reseted as well. But like I said only Opera let's me view http://localhost

Anyone have some ideas how I can fix this?


thanks in advance.
Zenko
 
Posts: 5
Joined: 27. November 2008 21:15

Postby Wiedmann » 27. November 2008 21:40

My problem is that I can't access my localhost (http://localhost)

error message?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Zenko » 27. November 2008 21:46

I search around google and someone mention to type: http://127.0.0.1/
I did and is now showing my localhost...

Here are the errors I get when I try accessing http://localhost

Google chrome:
This webpage is not available.

The webpage at http://localhost/ might be temporarily down or it may have moved permanently to a new web address.

More information on this error
Below is the original error message

Error 2 (net::ERR_FAILED): Unknown error.


FireFox:
Connection Interrupted

The connection to the server was reset while the page was loading.

The network link was interrupted while negotiating a connection. Please try again.


Safari:
Safari can’t open the page “http://localhost/”. The error was: “unknown error” (kCFErrorDomainWinSock:10054) Please choose Report Bugs to Apple from the Help menu, note the error number, and describe what you did before you saw this message.
Zenko
 
Posts: 5
Joined: 27. November 2008 21:15

Postby Wiedmann » 27. November 2008 22:09

Open your HOSTS file, and remove the line with "::1".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Zenko » 28. November 2008 01:08

Worked!

I edited my hosts file (windows vista):
C:\Windows\System32\drivers\etc\

removed the line "::1" and worked!

Thanks a lot for the help.

Wiedmann can you explain to me why this fix it? I always like to know the 'whys' and 'hows' just for refference.

Thanks bud!
Zenko
 
Posts: 5
Joined: 27. November 2008 21:15

Postby glitzi85 » 28. November 2008 10:55

::1 is localhost on IPv6. So if you type localhost in your Browser (or 127.0.0.1) then Vista tries to reach the IPv6 IP, Apache is only listening on IPv4 IPs.

If you want more Information about IPv6: http://en.wikipedia.org/wiki/IPv6

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby Zenko » 28. November 2008 13:41

Great! Thanks :)
Zenko
 
Posts: 5
Joined: 27. November 2008 21:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 165 guests