Hi Guys this repo consist of a source code for a simple CLI chatting app made using sockets in Python
This repo is continuation of an Article on my blog so you might wanna review it to see a more brief tutorial on how it all works out.
To get started just clone the repository using git command or pressing download button option at the right side of the repository
Cloning
$ git clone https://github.com/Kalebu/Commandline-chatting-system-python
$ cd Commandline-chatting-system-python
Commandline-chatting-system-python $ tree
.
├── client.py
├── README.md
└── server.py
0 directories, 3 files
This repo consist of two Python scripts named client.py and server.pyas I have explained on the tutorial, whereby server.py will serve as our server node and client.py will serve as our client node.
Note
You should start running the server script before running the client script because if you do otherwise, the client will exit immediately as result of not finding a server node to connect
running server.py
$ python server.py
running client.py
$ python client.py
Enter server_ip: 127.0.0.1
Finding connection
Connection succesful made to the server
Note
If the server script is run on the different pc or laptop enter your server pubic IP on client enter ip prompt
Now youre script should be running and able to communicate with each other, you try writing message to any of those script and then press enter to send the message to the another node whether it's server or client
Did you find this information useful, then give it a star
All the credits to kalebu