Skip to content

Simple Client-Server Chat Application using Python Sockets

Notifications You must be signed in to change notification settings

KetanSingh11/SimpleChatApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleChatApp

Simple Client-Server based Chat Application for multiple Clients, using Python Sockets and Threading.

My attempt to explore multi-treading and Socket module by creating a simple chat application with a single server in the centre of multiple clients. Clients post messages on the GUI (created using simple Tkinter package). Messages posted by each client is shows to every other client connected to the server. Basically a chatroom system where every message is shows to everyone.


Usage:

Execute the below from Windows command prompt/Linux Shell**

  1. Test to make sure you have all the required dependencies at place. Typing python3 -m tkinter should not error out. If it does, you have missing Tkinter module, which needs to be installed.
  2. Now, first start the server from multiChatServer.py
    python3 multiChatServer.py
    
  3. Then, run the below to start one client from multiChatClient.py:
    python3 multiChatClient.py
    
    If you need more than one client, run the above command on seperate command windows.

System Requirements :

  • Python 3.6 or greater
  • Threading (inbuild in Python Standard Library)
  • Sockets (inbuild in Python Standard Library)
**Build on __WINDOWS 7__. Tested on __Windows__ and __Linux__ also.

About

Simple Client-Server Chat Application using Python Sockets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages