It is a C based program build on the concepts of Socket Programming.
In which we can join many client to a server and can share messages between each other and form a group for chatting.
In this project, server provides a unique ID's to each client which get connected to it and work as a routing medium between all of them for share conversations and monitoring them.
- Compile both of the file client.c and server.c using gcc compiler by typing.
- gcc client.c -pthread -o client
- gcc server.c -pthread -o server
- The most important condition to use socket programming is that all the devices are on same network.
- Run the server file on the system which will be use as a server.
- ./server
- Now run the client program on the system which will be use as a client.
- ./client <server's_IP_address>
- Note: You can check ip using ifconfig -a in linux.
- If you are using server and client on same system use 127.0.0.1 as your local IP.
- ./client <server's_IP_address>