GithubHelp home page GithubHelp logo

tcp-chat's Introduction

TCP chat

A TCP chat room with RSA encryption and UDP device discovery. It's simple, and bypasses network firewall restrictions (e.g. for chatting on school wifi when discord/social media is blocked :) ).

Installation

cd chat
pip install -r requirements.txt

Usage

Start Server

python multi_server.py
# python server.py  # OR single client

Start GUI Client

python gui_multi_client.py
# python gui_client.py  # OR single client

Troubleshooting

NOTE: UDP broadcasts will not work with WSL2 on Windows. WSL2 uses a virtual network interface, which means which means it doesn't have the same network visibility by default. (See Microsoft docs for workarounds or run direclty on Windows instead).

If the client is not detecting the server broadcasts, make sure that UDP traffic is allowed on the broadcast port (in this case, 64667). For example, on Linux: sudo ufw allow 64667/udp

tcp-chat's People

Contributors

ad1616 avatar ellenjxu 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.