Merged command line reading to setting up server to communication with pi client