This project is a simple implementation of kad-dht bootstrap node based on go-libp2p.


  1. Go module download
    go mod tidy
  2. Run as default(bind on ‘’ port:4001):
  • go run main.go
  1. or Run with custom:
  • go run main.go -host [host] -port [port]

example output:

[*] Listening on: with port: 4001

[*] Your Bootstrap ID Is: /ip4/
  1. Copy the bootstrap id to your bootstrap nodes list and enjoy.

Notice: for a test example with kad-dht, visit go-libp2p-examples


View Github