command line P2P chat over UDP
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
- Find the jar file in /jar
- Get your friend to download the same file
- Exchange IP address information with the friend (type my ip into google)
- Pick a port (e.g 6004)
- 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.