Giter Site home page Giter Site logo

adhesh148 / babble Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 73 KB

A simple chat room application built using socket programming concepts and TCP protocol. The client-side UI is made using PyQt5.

License: MIT License

Python 100.00%
socket pyqt5-desktop-application chatroom chat-application network-programming tcp-ip

babble's Introduction

BaBbLe

A simple chat room application built using socket programming concepts and TCP protocol. The client side UI is made using PyQt5.

Requirements

  • Python 3
  • PyQt 5

Run the Code

Host the Server

The server can be hosted by running the server.py file present in the chat folder.

$ python3 server.py

The server code has the constant parameters of:

  • SERVER : defines the server address where the server is hosted
  • PORT: defines the port number of the host server

By changing these, we can set the server connection details. To make the server publicly accessible we can use tunelling services like ngrok. The server and port details we get from ngrok can be used to access the locally run server program even from different networks by entering them as the client server-port details.

Run the Client

The client can be executed by running the ui_client.py file present in the chat folder.

$ python3 ui_client.py

The application window should be fired up and visible. In the application, fill in the deatils of the username, server address and port number for the connection. Click on Join button to establish connection with the server. You will be prompted of successful connection in the TextArea in the application. Once connected to the server, you can begin chatting with existing users of the chat room by entering your message in the text field given and clicking on Send. If you want to leave the chatroom, click on Leave button, it will gracefully shutdown connection and close the application.

A Look at the UI

ui
ui

Demo

babble's People

Contributors

adhesh148 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.