ServerConnect and ClientConnect untested code added.