Session establishment failed on calling connect() method, because domain name and hostname is different... any fix?