Skip to content

Basic chat between one client and server, use the socket module to establish a connection. The server listens for incoming connections, accepts the client, and then both communicate using send and recv methods

Notifications You must be signed in to change notification settings

kassam-99/Simple-Chat-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Simple Socket Chat

This is a simple chat project that enables the exchange of messages between a server and a single client. It is written in Python and utilizes the concepts of sockets and threading.

Requirements

To run this project, you need to have Python 3.7.6 or a newer version installed. Additionally, the server and client must be set up on a local area network.

Running the Project

To run the project, you will need two computers: one for the server and one for the client. Setting up the server:

If you are using Python 3.7.6 or a newer version, run the following command to start the server:

$ python3 server.py

Setting up the client:

You will also need to set up a client to see messages on the terminal. To do this, run the following command:

$ python3 client.py

Ensure that you follow these steps on separate computers to enable communication between the server and client.

Contribution

Feel free to contribute to the development of this simple socket chat project by creating issues or pull requests. Your feedback and enhancements are welcome!

About

Basic chat between one client and server, use the socket module to establish a connection. The server listens for incoming connections, accepts the client, and then both communicate using send and recv methods

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages