Skip to content

thevickypedia/socket_programming_tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket Programming

Simple TCP connection between server and client

This is a simple tcp connection establishment between server and client using socket programming in C

Suitable for Linux command line

Steps:

  • Place the server and client files in different folders
  • Run gcc server.c -o server to create executable server file
  • Run gcc client.c -o client to create executable client file
  • Initiate server using ./server <port_nummber>
  • Initiate client using ./client <server_ip> <port_number>

Connection established!

Note: Both ./server and ./client can run without arguments in case of localhost (127.0.0.1) and the port number is also hard coded.

About

Simple TCP connection using C program

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages