Simple working client that sets up a connection to the server