Giter Site home page Giter Site logo

viniexplorer / pychat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeyu2001/pychat

0.0 0.0 0.0 621 KB

A real-time Python chatroom application with Tkinter GUI

Home Page: https://dev.to/zeyu2001/build-a-chatroom-app-with-python-44fa

License: MIT License

Python 100.00%

pychat's Introduction

pychat

A fork from the Python chatroom application with Tkinter GUI by Zhang Zeyu

Create Your Own Chatroom Application

Check out Zhang Zeyu's tutorial here.

How to Run?

Run the server.py script from the command line.

Usage: python3 server.py <host> [-p PORT]

Arguments:

  • host: Interface the server listens at. Can be a hostname, or an IP address.
  • -p PORT: TCP port the server listens at (default 1060)

For example:

$ python3 server.py 127.0.0.1
Listening at ('127.0.0.1', 1060)
$ python3 server.py localhost
Listening at ('127.0.0.1', 1060)

Run the client.py script from the command line (in a separate terminal window).

Usage: python3 client.py <host> [-p PORT]

Arguments:

  • host: Interface the server listens at. Can be a hostname, or an IP address.
  • -p PORT: TCP port the server listens at (default 1060)

For example:

$ python3 client.py localhost
Trying to connect to localhost:1060...
Successfully connected to localhost:1060

Your name:
$ python3 client.py 127.0.0.1
Trying to connect to 127.0.0.1:1060...
Successfully connected to 127.0.0.1:1060

Your name:

Run multiple clients to chat in real-time!

Note: If connecting from a different subnet, your firewall may block the connection.

Preview

GUI Interface

Screenshot2

Command Line Interface

Screenshot1

pychat's People

Contributors

viniexplorer avatar zeyu2001 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.