This repository contains two folders
- Clienttoclient - It contains code for establishing connections between multiple clients through server in order to chat with each other.
- Serveroneclientone - It contains code for establishing connections for chatting between a client and server.
gcc filename.c
./a.out
Since, the server is hosted on the same machine as clients hence both server and clients code should be executed on the same machine. If you want to host server on one computer and clients request from other computer then you will have to change the IP addresses in the code according to the network you are using and connect the server and clients on the same network.