Chatting Application using Python

Task Description 👨🏻‍💻

Note: Machines must have different OS like One Linux Machine one Windows. Both machines must be configured with python.

So I have used two OS, one Redhat Linux and the second is Windows.

Redhat
Windows

So in the below image, there are two programs named client.py and server.py in Redhat and Windows respectively.

This is the code of client-side, i.e, on the side of Chirag:

This is the code of server-side, i.e, on the side of Karan:

After running these two programs, as they are running on UDP, they will ask each other’s IP:

So these two systems are ready to chat!!!!

So at last there is the chat between the two friends:

This program will automatically end when both users will say ‘bye’.

You can find the code here.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store