Build Build the server $ make server Execute the server $ ./server Build the server that accepts only a single connection at a time $ make server_sc Connecting to the server $ php client.php Hi References http://www.binarytides.com/php-socket-programming-tutorial/ https://github.com/zappala/socket-programming-examples-c