![]() |
![]() |
---|
This is a client-server chat project with a graphical interface, enabling communication between multiple computers using Python sockets.
This project consists of two main parts: the server and the client. The server manages connections between clients and forwards messages, while the client provides a graphical interface for users to participate in the chat.
-
Server:
- Manages client connections.
- Forwards messages between clients.
- Allows private communication between users.
-
Client:
- User-friendly graphical interface.
- Sends messages to all participants.
- Sends private messages to specific users.
-
Server and Client:
- Python 3.x
-
Client:
customtkinter
library (installable viapip install customtkinter
)
-
Clone the repository:
git clone https://github.com/luis-ota/pyChat.git
-
Server Configuration:
- Disable the firewall on the server PC to allow connections.
-
Start the Server:
- Run the
servidor.py
script oraplicativos/servidor.exe
.
- Run the
-
Start the Clients:
- Run the
app/main.py
script oraplicativos/chat.exe
on each machine that wants to participate in the chat, or run it twice on the same machine to test.
- Run the
Now, with the server and clients running, users can communicate with each other through the chat. Make sure all machines are on the same network to ensure proper communication.