Skip to content

Abhishek-dev1/LAN-CHAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Local Area Network Chat

This command line application basically uses the user's IPv4 address and create a socket to transmit a message from one's terminal to another terminal.

Installation

To run this application in Windows :-

  • Download Cygwin and then install it.
  • Now search for gcc and then install gcc-g++ and gcc-core.
  • After the Installation cygwin terminal get installed and then copy the files server.cpp and client.cpp and then change the directory in the terminal where the files are and then run the following commands :-

For Server

  g++ server.cpp -o server 
  ./server 8080 

(if not work then use g++ server.cpp -lpthread -o server instead of above command)

For Client

  g++ client.cpp -o client
  ./client IP_ADDRESS SERVER_PORT_NO.

(if not work then use g++ client.cpp -lpthread -o client instead of above command)

TO RUN THIS IN LINUX BASED OS JUST SKIP THE INSTALLATION OF CYGWIN AND FOLLOW THE SAME STEPS
USE LINUX FOR BETTER RESULTS

Example

Server
    g++ server.cpp -o server 
    ./server 8080
Client
    g++ client.cpp -o client 
    ./client 127.0.0.1 8080

About

Client-Server chat application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages