Code Monkey home page Code Monkey logo

udpchat's Introduction

UDPChat

command line P2P chat over UDP

Description

This is simple P2P over UDP. It uses the principal known as UDP hole punching to get past NATs. It also demonstrates Akka Actors.

##Usage

  1. Find the jar file in /jar
  2. Get your friend to download the same file
  3. Exchange IP address information with the friend (type my ip into google)
  4. Pick a port (e.g 6004)
  5. Execute the jar as follows:

java -jar UDPChat.jar RemoteIP Port Name

RemoteIP: The remote IP address

Port: The port number you want to connect on

Name: The name you want to appear by your chat text

##Details This uses UDP hole punching to get through "most" NATs you and your friend may be behind. Normally you would discover peers (i.e. IP/Port info) through some external STUN type server, but in this simple example we just exchange that information manually.

This was an experiment that led to other projects with distributed file sharing. Check out RUDP_Share for more info.

udpchat's People

Contributors

joshuaar avatar

Watchers

Anirudh prasad 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.