use '127.0.0.1' instead of 'localhost'

No need to do a (potentially blocking) DNS lookup for 'localhost'