generate clientId on the server