Skip to content

UDP hole punching example and synchronization algorithm similar to DCUtR(WIP)

Notifications You must be signed in to change notification settings

orangeseeds/conn-p2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hole Punching & NAT Traversal

An implementation of a UDP Hole Punching which uses synchronization techniques like the ones used in DCUtR.

Usage

This is just and experimental project to learn more about p2p, hole-punching & NAT Traversal.

Running the project (WIP)

Usage of ./main:
  -c	         node as client(c)
  -p string      port for local addr (default ":1111")
  -rAddr string  relay address (default ":5173")
  -s	         node as server(s)

Running Node Client

go run ./cmd/ -c -p :[CLIENT_PORT] -rAddr [RELAY_IP]:[RELAY_PORT]

Running Relay Server

go run ./cmd/ -s -p :[PORT]

About

UDP hole punching example and synchronization algorithm similar to DCUtR(WIP)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages