C++ Sockets Server Client Example Build server and client g++ server.cpp -o server g++ client.cpp -o client Run server and client in order on seperate terminals. You can run client with argument.