P2P protocol implemented in Golang
- Clone the repo
git clone https://github.com/macadrich/dmnet.git
cd dmnet
- Install Go dependencies
dep ensure
- Execute command
- server
go run cli/main.go -mode=server -addr=0.0.0.0
- client1
go run cli/main.go -mode=client -addr=0.0.0.0:9001
// random port will generate for client1
// e.g listening on [::]:44246
- client2 connect to client1
go run cli/main.go -mode=client -addr=0.0.0.0:44246
// random port will generate for client2
// e.g listening on [::]:41007