Setting up client and server architecture.