move get_client_socket into common file
connect to the server, exit if error, add some logic in commentc