Skip to content

It is a local chatting and file sharing ability over LAN. This is helpful when there is no internet access in our connection, but we can still communicate over the network.

License

Notifications You must be signed in to change notification settings

ESE-Wahaj/LAN--Messanger

Repository files navigation

LAN--Messanger

Local LAN Messaging System

Introduction:

LANChat is designed for Windows using C++ and Winsock. It enables seamless communication and file sharing within your local network. With LANChat, you can stay connected and exchange messages, even when internet access is unavailable. Experience uninterrupted connectivity and efficient collaboration with LANChat. Connect, chat, and share files effortlessly within your LAN network.

Features:

  • Accepts client connections over the network
  • Handles multiple client connections concurrently using threads
  • Receives messages from clients and echoes them back

Requirements:

  • Windows operating system
  • C++ compiler (e.g., GCC, MinGW, Visual Studio)
  • CLion IDE (optional)

Getting Started:

  1. Clone the repository or download the source code files to your local machine.(For GitHub Users)
  2. Open the project in CLion or your preferred C++ development environment.(For forks with source code)

Building and Running:

  1. Build the project to compile the source code.
    • In CLion: Click on the "Build" menu and choose "Build Project".
    • Using a command line compiler: Navigate to the project directory and run the appropriate build command (e.g., g++ server.cpp -o server).
  2. Run the server executable generated by the build process.
    • In CLion: Click on the "Run" menu and choose "Run 'server'".
    • Using a command line: Execute the generated server executable (e.g., ./server).

Usage:

  1. Launch the server application.
    • The server will start listening for client connections on port 54000.
  2. Clients can connect to the server using the server's IP address and port 54000.
    • Clients should have the client-side application running and enter the server's IP address when prompted.

Server Operation:

  • Once the server is running, it will display a message indicating that it is waiting for connections.
  • Clients can connect to the server by entering the server's IP address in their client-side application.
  • The server will handle multiple client connections concurrently using threads.
  • Messages received from clients will be displayed on the server's console.
  • The server will echo the received messages back to the respective clients.

Closing the Server:

  • To stop the server, you can simply terminate the server application by pressing Ctrl+C or closing the console window.
  • The server will close all client connections and release the network resources.

License:

This project is licensed under the MIT License. For more information, see the LICENSE file.

Contributing:

  • Contributions are welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request on the project repository.

Support:

  • If you encounter any problems or have questions about using the server, please feel free to contact the project maintainer.

About

It is a local chatting and file sharing ability over LAN. This is helpful when there is no internet access in our connection, but we can still communicate over the network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published