Skip to content

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

License

Notifications You must be signed in to change notification settings

Adhesh148/BaBbLe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages