Skip to content

AnaghJayaprakash/UDPChat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

command line P2P chat over UDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published