Skip to content

dev-bittu/py-socket-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

py-socket-chat

This is an Python-based Secure Chat room. The project is entirely based on the Socket Progamming; done using Python. A server is set to the listening mode, with a specific IP Address and Port numner (that can be edited in the script) and clients are made to connect to the server. The messages are then broadcasted to all the clients present.

How it works?

What is socket?

Sockets and the socket API are used to send messages across a network. They provide a form of inter-process communication (IPC). The network can be a logical, local network to the computer, or one that’s physically connected to an external network, with its own connections to other networks. The obvious example is the Internet, which you connect to via your ISP. Socket Diagram

How our program work?

Python Socket Working Diagram

Features

  • Add multiples client
  • Chat parallely

Getting Started

Prerequisites

  • Python3 with pip
  • threading
  • socket

Setup

Setup in Linux or in Termux
apt install git python3 -y
git clone https://github.com/Dev-Bittu/py-socket-chat.git
cd py-socket-chat
pip install -r requirements.txt

Now, your setup is complete. So, you can run your server and can chat.

Run server and connect with clients

For starting server

Type this in your terminal,

python3 server.py

if you see the follwing means it working,

$ python3 server.py
Server running!
For stopping the server

Press CTRL + c


Authers

  • Bittu (Dev-Bittu)
Contact With Us

License

This project is licensed under the MIT License - see the LICENSE for details

TODO

  • Add kick system
  • Show nickname instead of ip

About

A Socket based Chat Room built with Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages