changed localhost to 127.0.0.1

It resolve directly to the IP address of the machine instead of resolving the IP from the host(localhost)