Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.52 KB

README.md

File metadata and controls

45 lines (35 loc) · 2.52 KB

same-network-group-chat

GUI group chat for computers in the same network. Multiple clients can be created on a single computer. After starting the server. Clients can connect to the server. Clients connected to a server will be able to send broadcast messages to other clients connected to that server. Both the server program and client program are GUI based.

Dependencies

  • Python 3
  • PyQt5 :- Install by running pip3 install PyQt5 in a terminal or command prompt.

Starting the group chat

  • Server
  1. Start the server by running python3 server_app.py in a terminal or command prompt.
  2. Leave the fields in the server program empty to use default configurations.
  3. Click Start server button.
  • Client
  1. Create a client by running python3 client_app.py in a terminal or command prompt.
  2. In the client program enter a nickname to be seen by other clients when you send messages.
  3. If the client programs will be running on the same machine as the server, leave the hostname field blank othereise enter the IP address of tge computer running the server.
  4. Leave other fields blank if you didn't enter a port number in the server program.
  5. Click Connect to server button.

Perform the steps to start the client multiple times to create multiple clients.

In theory, the code should work on all platforms. The code has not been tested with MacOS. The demo video is a test run on Windows 10. The screenshots below were taken on Ubuntu Linux test run.

First run of server_app.py

server_first_run

First run of client_app.py

client_first_run

Client about to connect

client_about_to_connect

One client connected

one_user_connected

Multiple clients connected

multiple_users_connected