Running a dht node is as simple as installing the DHT cli.
npm i -g @hyperswarm/cli
Then to run the node do:
hyperswarm-dht
NOTE: If the above prints a warning that your network is NOT holepunchable, you might wanna look into opening port 49737.
That's it! You probably run to run the above command as a daemon so it get's decent uptime.
The DHT node will store IPs and ports from other users through an udp interface. The network is quite redundant so no worries if you shutdown your node or if it crashes :) It also shouldn't consume too much bandwidth as it's just simple small udp messages that exchanged when peers do discovery.
We might upgrade the command set in the future so it's a good idea to hang in #dat on freenode so we can share updates and you can give us feedback.
Leaving a comment here that you are running a node for a bit will help us in this early phase of the rollout also so we can stay in touch :)
Hi all!
We rolled out a bigger update for better DHT health. If you could all install @hyperswarm/dht >= 3.6.1 and restart that'd be awesome :) Currently your nodes are disconnected from the bootstrappers until you do that.
Also there is a flag node
--quiet
if you don't all those pesky logs.Thanks again for the help. I really appreciate it.