Skip to content

Blehrmph/Python-Socket-Messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python-Socket-Messenger

A real-time terminal chat app built with pure Python sockets. It lets many clients connect to one server and talk in real time.


🚀 How it works

  • You start the server on one computer.
  • Other computers run the client and connect to it.
  • Everyone can send and receive messages instantly.

⚙️ How to run

🖥️ 1. Start the server

python server.py

Keep this running — it waits for clients to join.

💻 2. Start the client

On another machine (or same computer), run:

python client.py

If the server is on another PC, edit this line in client.py:

SERVER_HOST = "192.168.x.x"   # replace with server's IPv4 address

✍️ 3. Chat!

Type messages and press Enter to send them.


📡 Example

[Amine joined the chat]
Amine: Hello!
Jaied: Hey Amine!

🧠 Notes

  • Works on the same Wi-Fi network.
  • Uses only built-in Python modules (socket, threading).
  • No Internet required — it’s all local.

About

A real-time terminal chat app built with pure Python sockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages