To run this chat system, you should run the server first.

./server

Then for any client to join the chat server, just:

./client [hostname]

For example: ./client localhost