Now resolves hostname of server when connecting.