Git Product home page Git Product logo

commandline-chatting-system-python's Introduction

Commandline chat app in Python

Intro

Hi Guys this repo consist of a source code for a simple CLI chatting app made using sockets in Python

The original article

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.

Getting started

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.

Running our scipt

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

Explore it

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

Give it a star

Did you find this information useful, then give it a star

Credits

All the credits to kalebu

commandline-chatting-system-python's People

Contributors

kalebu avatar kalebujordan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

commandline-chatting-system-python's Issues

please help me!!

i've spent a whole day trying to figure out if i can connect to a remote socket in python. the server and client i have written work well when ran on the same machine or on different machines only if both are on the same network. what i intend to do is make it so that anyone in the world can connect to the server. please help me!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.