Separate common processes between client and server
Enable to select ip and port