https://github.com/benderpan/simple-bootstrap-node
A simple bootstrap node for kad-dht ( go-libp2p-kad-dht )
https://github.com/benderpan/simple-bootstrap-node
bootstrap dht ipfs kad-dht libp2p
Last synced: 28 days ago
JSON representation
A simple bootstrap node for kad-dht ( go-libp2p-kad-dht )
- Host: GitHub
- URL: https://github.com/benderpan/simple-bootstrap-node
- Owner: BenDerPan
- License: mit
- Created: 2018-11-01T04:01:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T01:15:01.000Z (over 2 years ago)
- Last Synced: 2025-03-21T04:22:58.411Z (about 1 month ago)
- Topics: bootstrap, dht, ipfs, kad-dht, libp2p
- Language: Go
- Size: 4.88 KB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
This project is a simple implementation of kad-dht bootstrap node based on go-libp2p.
### Usage:
1. Run as default(bind on '0.0.0.0' port:4001):
* for linux: `./bootnode.amdx64-linux`
* for windows: `bootnode.amdx64-windows.exe`2. or Run with custom:
* for linux: `./bootnode.amdx64-linux -host [host] -port [port]`
* for windows: `bootnode.amdx64-windows.exe -host [host] -port [port]`example output:
```
[*] Listening on: 0.0.0.0 with port: 4001[*] Your Bootstrap ID Is: /ip4/0.0.0.0/tcp/4001/p2p/QmP2C45o2vZfy1JXWFZDUEzrQCigMtd4r3nesvArV8dFKd
```3. Copy the bootstrap id to your bootstrap nodes list and enjoy.
### Notice: for a test example with kad-dht, visit [go-libp2p-examples](https://github.com/libp2p/go-libp2p-examples/blob/master/chat-with-rendezvous/chat.go)