Localhost, the connection failed
Solved
Potem
-
Aqvaili -
Aqvaili -
Hello,
I am posting this message to share my issue with you. I have been looking for a solution on various forums for a while now and have not found any answers.
Let me explain: I am working on a website in PHP, so I am using WampServer. Since the beginning of the project, everything has been working very well, and I could test my scripts via the address http://localhost. However, since this morning, when I launch http://localhost or access localhost via Wamp, Firefox returns an error: "The connection has failed." I also tested it in IE7, and I can't access my localhost there either.
However, my server is running properly; if I access localhost via the IP address: 127.0.0.1, everything works fine. This leads me to believe that my address http://localhost no longer points to IP 127.0.0.1.
Where could this be coming from? How can I configure the IP address linked to localhost?
Thank you for your responses, and I hope I was clear.
Potem
I am posting this message to share my issue with you. I have been looking for a solution on various forums for a while now and have not found any answers.
Let me explain: I am working on a website in PHP, so I am using WampServer. Since the beginning of the project, everything has been working very well, and I could test my scripts via the address http://localhost. However, since this morning, when I launch http://localhost or access localhost via Wamp, Firefox returns an error: "The connection has failed." I also tested it in IE7, and I can't access my localhost there either.
However, my server is running properly; if I access localhost via the IP address: 127.0.0.1, everything works fine. This leads me to believe that my address http://localhost no longer points to IP 127.0.0.1.
Where could this be coming from? How can I configure the IP address linked to localhost?
Thank you for your responses, and I hope I was clear.
Potem
Configuration: Windows Vista Firefox 3.0.7
- First, open the text editor (notepad or bloc notes) in administrator mode -> right-click on notepad and select "Run as administrator"
- Open the file C:\WINDOWS\system32\drivers\etc\hosts
Enjoy !