finish connect to server