fix client connection registration with wrong address
Merge pull request #4188 from sancar/fix/clientAwsRegisteringWrongAddress/master

fix client connection registration with wrong address