Improved server authentication (hashing hostname and port as well)