Code Monkey home page Code Monkey logo

chat.py's Introduction

๐Ÿ’ฌ Chat.py

About

Chat.py is a simple program developed for an assignment of a Computer Networks class. It implements the usage of TCP to send messages between Client and Server.

Technologies

  • Python

Setup

Requirements

To run and edit this project locally, certify that you have installed the following programs:

After that, you'll need to clone this repo:

git clone https://github.com/LBeghini/Chat.py.git

Usage

To run this project, you'll only need two files:

  • server.py
  • client.py

Open cmd in the folder where you installed these files.

Server

To run the server, execute:

python server.py

The script accepts a default argument that sets the server at localhost in the port 12000:

python server.py default

Client

After setting and running the server, on another cmd, run the client:

python client.py

Just like the server, the script also accepts a default argument that tries to connect in localhost under the port 12000:

python client.py default

Tips

You don't need to be forever alone and send messages only to yourself. It can work between your friends!
It can be done using Hamachi. You and your friends will need to download it.

It's simple to use, and what it does is simulate that all the connections are in the same local network.

After downloading it, create an network and set the IP of the server.py as the public IP given by Hamachi. The port can be settled as default.

Then, ask your friends to connect with your network through Hamachi. Then, give them the file client.py with the IP and port you've settled for the server.

As an last step, Windows Firewall will block Hamachi connections, but there's a way to give permission to Hamachi.

And that's it!

chat.py's People

Contributors

lbeghini avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

hrithiksingh24

chat.py's Issues

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.