A simple console-based chat application implemented in C that allows users to communicate over a network using Hamachi.
- Simple console interface for sending and receiving messages.
- Supports multiple clients connecting to a single server.
- Easy setup using Hamachi for local network connections.
Before you begin, ensure you have met the following requirements:
- A C compiler (GCC, Clang, etc.)
- Make (GNU make, MinGW make)
- Hamachi installed and set up on your machine.
- Basic knowledge of using the terminal/command line.
-
Clone the repository:
git clone https://github.com/without-eyes/ConsoleChat.git cd ConsoleChat
-
Use executables OR сompile the code:
make
-
Start the Server: Open a terminal and run:
./server
When prompted, enter the Hamachi IP address and port (e.g., 1111).
-
Start the Client: Open another terminal and run:
./client
When prompted, enter the username, server's IP address and port (e.g., 1111).
-
Send Messages:
- Type your message and press Enter to send it.
- Messages from other users will appear in the console.
-
Install Hamachi: Download and install Hamachi from the official website: Hamachi Download
-
Create or Join a Network:
- Open Hamachi and create a new network or join an existing one by entering the network ID and password.
-
Find Your Hamachi IP Address:
- Your Hamachi IP address will be displayed in the Hamachi window. Share this IP with other users to allow them to connect to your server.
-
Configure Firewall:
- Ensure that your firewall allows incoming connections on the specified port (default: 1111).
Enter your username(or skip by pressing 'Enter'): without eyes
Enter IP address: 25.XX.XX.XX # Replace with the Hamachi IP
Enter port: 1111
Connected!
[without eyes] hello
[anonymous] hi, how are you?
This project is licensed under the MIT License. See the LICENSE file for details.