set client and server