If your organization's computer is connected to a domain, it may be assigned a Fully Qualified Domain Name (FQDN). In this case, "localhost" may not work as expected.
Check with hostname command and verify.