Only reason I've seen localhost not work is if you are using a proxy for some reason. it tries to force it through the proxy server and the proxy server can't resolve the name or doesn't have a web server on the machine to give you back any page.
you can check the hosts file entry by open up the hosts file in notepad. There should be an entry like below.
c:/windows/system32/drivers/etc/hosts
Forum:
WampServer English