Socket Programming in Python | Basic Client Server architecture | Simple chat application

Published: 20 August 2018
on channel: Technical Lab
2,033
33

In this tutorial, I will show you how to create a basic Socket Client- Server architecture using python programming language. We shall develop a basic chat application where client and sever can talk.
Implenmentation as below:

Server side:

1. Create socket using domain name and type and prorocol

2. bind with hostname and port no

3. Listen for incoming connections

4. accept connections, returns new socket obj and client address.

5 send message

6. receive msg

7. close socket

Client side:

1. create socket

2. connect to server using ip and port number

3. receive message

4. send msg

5. close socket

Please subscribe to my youtube channel for such tutorials

Please watch the split a file by line number here:
   • Split utility in Linux/Unix : to brea...  

Split utility in Linux/Unix : to break huge file into small pieces
   • Split utility in Linux/Unix : to brea...  

How to keep sessions alive in terminal/putty infinitely in linux/unix : Useful tips
   • How to keep sessions alive in termina...  

Random value generator and shuffling in python
   • Random value generator and shuffling ...  

Intro to class in python
   • Introduction to Class in python  

Lists, tuples, dictionary in python
   • Introduction to Lists, tuples and dic...  

Python basic tutorial for beginners
   • Python basics tutorial for beginners  

Python basics tutorial for beginners part 2 -variables in python
   • Python basics tutorial for beginners ...  


Vi editor basic to advance part 1
   • VI editor basic to advanced : Part 1  

Vi editor basic to advance part 2
   • VI editor basic to advanced tutorial ...  

Keyboard remapping in linux, switching keys as per your own choice
   • Keyboard remapping in linux, switchin...  

How to install/open an on sceen keyboard in Linux/Unix system
   • How to install/open an on sceen keybo...  

Python IDE for windows , linux and mac OS
   • Python IDE for windows , linux and ma...  

How to record screen or sessions in Linux/Unix
   • How to record screen or sessions in L...  

How to download and install PAGE GUI builder for python
   • How to download and install PAGE GUI ...  

Create a basic Login page in python using GUI builder PAGE
   • Create a basic Login page in python u...  

Working with RadioButton in python in PAGE builder
   • Working with RadioButton in python in...  

Basic program on Multithreading in python using thread module
   • Basic program on Multithreading in py...  


On this page of the site you can watch the video online Socket Programming in Python | Basic Client Server architecture | Simple chat application with a duration of hours minute second in good quality, which was uploaded by the user Technical Lab 20 August 2018, share the link with friends and acquaintances, this video has already been watched 2,033 times on youtube and it was liked by 33 viewers. Enjoy your viewing!