Last post Jun 03, 2011 12:22 AM by Mohammed Askar
Mar 12, 2008 07:28 PM|Goerie|LINK
When i try to watch or debug any website on localhost it keeps redirecting me to
I'v checked my hosts file and there is no entry for localhost to localhost.com in the file.
In firefox it redirecting me to www.localhost.com and in ie it says that webpage cannot be found.
When i replace localhost for 127.0.0.1 everything works fine.
Does anyone know a solution for this problem because after searching for quite some time i still haven't found an answer.
Mar 12, 2008 08:19 PM|aspnewbieperson|LINK
localhost is not accessible on a remote host such as your host's web server.
you can only access it locally via http://localhost
Hope this helps.
Mar 12, 2008 08:21 PM|gunteman|LINK
You must have a localhost->127.0.0.1 entry in your hosts file.
Mar 13, 2008 03:10 AM|Goerie|LINK
That entry is in my hosts file. And there are no other lines in there.
Mar 13, 2008 03:14 AM|Goerie|LINK
Mar 13, 2008 07:24 AMfirstname.lastname@example.org|LINK
Is it possible you have a localhost entry in your DNS? Also, for debugging, why do you care, if the system name, system IP or 127.0.0.1 work?
Mar 13, 2008 07:44 AM|Goerie|LINK
How can i check if there's a localhost entry in my DNS ?
The debugger is pointing to localhost if you can explain me how i can change this to for example 127.0.0.1 ?
Mar 13, 2008 03:44 PM|Goerie|LINK
well i got things working again. I just placed the entry
in my hosts file.
But i still think it's kinda weird that at first i was able to access
http://localhost/ without any problems and after adding highslide js to my vs2005 web project i wasn't able to access
And when i used http://127.0.0.1/ i could access it again. If tried it on ie7 (which said that the page could not be found), firefox (tried to redirect to
http://www.localhost.com/) and seamonkey (also tried to redirect to
These are the things i've tried to access http://localhost/ again :
- reinstall .net framework 2.0
- restart iis
- flush dns
- disable virus scanner
- disable firewall
- disable ipv6
But nothing worked. So i anyone has an idea to make it work again then please tell because i can't figure out whta went wrong and i'm dying to know what it was.
Mar 31, 2008 03:50 PM|deejbee|LINK
i'm having the same problem. I haven't used this dev env for a couple of weeks but its done some auto-updates. my guess is MS has rolled out a bug.
May 30, 2008 10:46 AM|duckworth|LINK
in firefox type about:config and change the setting for:
browser.fixup.alternate.enabled to false
Also, I have had IPv6 cause problems before so check your host file for an ipv6 entry for localhost
and try commenting it out with a #
May 31, 2008 08:06 AMemail@example.com|LINK
Make sure there is an entry in the hosts file pointing localhost to 127.0.0.1.
Oct 03, 2008 10:12 AM|toak|LINK
Im running Vista SP1 and Visual Studio 2008. I had the same problem and removing ::1 localhost in the hostfile fixed the problem
Jun 03, 2011 12:22 AM|Mohammed Askar|LINK
in the internet explorer
Option -> Connection -> LAN Setting -> Enable Bypass proxy server for the local addresses