Skip to content

Kademlia DHT boot node : for initial booting new joing p2p nodes.

Notifications You must be signed in to change notification settings

avvvet/kad-dht-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Kademlia DHT bootstrap node

what is it ?

This is simple dedicated dht bootstrap node, its only functionality will be to act as DHT ! In order your p2p nodes to join your public network , they need at least one node that helps them to find other nodes and start the decentralize communication. once nodes up and running they don't need the availablity of the boot node.

why dedicated bootstrap ?

yes you can integrate this functionality to your peers and make them act as bootstrap, but you need to remember which of your nodes are acting as bootstrap server ! in that case you can have dedicated bootstrap node and even you can make it static in other nodes.

How to run

$ go run .

2022/06/27 14:58:24 Host ID: QmW3TsL15x5b9bRDVUEodnXyxPaNHzp6JashgYz37CmhpJ
2022/06/27 14:58:24   /ip4/172.20.10.2/tcp/41943/p2p/QmW3TsL15x5b9bRDVUEodnXyxPaNHzp6JashgYz37CmhpJ
2022/06/27 14:58:24   /ip4/127.0.0.1/tcp/41943/p2p/QmW3TsL15x5b9bRDVUEodnXyxPaNHzp6JashgYz37CmhpJ
Kademlia DHT boot node : -->  QmW3TsL15x5b9bRDVUEodnXyxPaNHzp6JashgYz37CmhpJ

## How to use it
copy this node address and use it in your other peers
 `go run . -boot /ip4/172.31.91.153/tcp/39049/p2p/QmYZYpGMGd2m9JcUrB9Sdfik7nG2qVTYQ5V6zAVSe6dHTh` (this is example)

## server
server which the boot node running, need to have public ip address (to connect nodes found in diffrent locations). make sure when you use/copy the address use the public ip not the private ip. 

if you use server from digitialocean, it will show you the public ip and it works directly. However on AWS EC2 you need to open port number of the boot node on the ec2 network security.

Credit

to open source community - while some tries to make our day dificult and be smart ass, other beautiful mind make our day joyfull !! ❤️

About

Kademlia DHT boot node : for initial booting new joing p2p nodes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages