Simple server and client mode