Skip to content

Client-Server TCP communication using Socket Programming in c

Notifications You must be signed in to change notification settings

GAURAV-DEEP01/Client-Server-Chat-TCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client-Server communication using TCP connection

If you want to try this out (only Windows user's)

  1. Download the zip file in the download folder
  2. Extract the files
  3. Open command prompt, locate (using cd) and run the server.exe file

Note : turn off 'real time protection' in your settings if it doesnt work

use commands :

Default port set to 9090

server 

or

For custom port

server <port number>

server cmd

  1. Open command prompt once more on the same or another device and run the client.exe file

Note : If same device use default or loopback connection

use commands :

Connects to the default port(9090) in a loopback IP

client 

or

Connects to a specific port in loopback IP

client loopback <port number>

loopback connection

or

Note : Use this if you want to communicate with another device in the same LAN connection

client <server ip address>:<port number server is listening>

custom socket

  1. Now, client-server can communicate!

chat

  1. You can end the chat by typing 'leave'

end chat

About

Client-Server TCP communication using Socket Programming in c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published