Task: Chat Server using Python

Create your own Chat Servers, and establish a network to transfer data using Socket Programing by creating both Server and Client machine as Sender and Receiver both. Do this program using UDP data transfer protocol.

Rishabh
2 min readApr 14, 2021

Task Description:

🔅Create your own Chat Servers, and establish a network to transfer data using Socket Programing by creating both Server and Client machine as Sender and Receiver both. Do this program using UDP data transfer protocol
** Hint **
🔅 Use multi-threading concept to get and receive data parallelly from both the Server Sides. Observe the challenges that you face to achieve this using UDP.

Pre-Requisite:

a. Basics of Python Socket Programing
b. Two System with Python installed as For chat we need two Persons
c. Internet connectivity

Now let’s get started…..

✔STEP’s: We have to Create Both server Side as well as Client side Program

🔦For this 1st we will Import the required modules

🔦2nd We will use socket module to bind the Ip and Port for receiving end,

🔦3rd We will also use the sender’s function of Socket module to send the Data in binary,

🔦Lastly We have to use the Multi-Threading as we are running two Infinite, Loops and we want them to run in Parallel(i.e. very-very fast)

System-1
System-2

🔦 Running the chat Program on Both Systems*

As we Can see… Our Chat Program is Working on UDP protocol Hope you guys Liked it and Learn from it!!

--

--

Rishabh

Student from B.tech 2nd Year, A proud ARTH learner, love new technologies, Curious about many thing, likes to explore places, love eating pizza and much more.