- Fix: Localhost unavailable with ESET NOD32
-
Posted by oVan on Friday, March 21, 2008 | PermaLink | 2 commentsAdvertisement:
Developers using Visual Studio will probably encounter this problem after installing ESET NOD32 antivirus or ESET Smart Security Antivirus+Firewall: browsing the web with Internet Explorer works fine except for websites you develop yourself (localhost).
Disabling the firewall or antivirus features doesn't solve this problem, however replacing localhost with 127.0.0.1 (or using FireFox) does solve it.
The real problem is easily fixed though.
Windows Vista:
In the start menu, type "notepad %system%\drivers\etc\hosts" and instead of pressing enter, right-click on the notepad icon in the top of the list (see screenshot). In the context menu you must click on "Run as administrator".
Windows XP and 2000:
Open a command prompt (cmd.exe) and type these commands:
cd %system%\drivers\etc
attrib -r -h -s hosts
notepad hosts
You will then see the following file in notepad:
The last line contains the problem. It reads:
::1 localhost
You can either remove this line and save the file, or comment it out with a pound/hash character #. Voila, fixed!
Labels: Administrator, fix, IE, IE6, IE7, Internet Explorer, Internet Explorer 7, Microsoft, problem, Vista, Visual Studio 2005, Visual Studion 2008, vs2005, vs2008, web develoment, Windows, Windows Vista
