Skip to content

Instantly share code, notes, and snippets.

@mafintosh
Last active November 25, 2022 23:30
Show Gist options
  • Save mafintosh/ec498f6f1ec32bfb74b777137b6f7d55 to your computer and use it in GitHub Desktop.
Save mafintosh/ec498f6f1ec32bfb74b777137b6f7d55 to your computer and use it in GitHub Desktop.

Hyperswarm DHT setup

Checking your network for P2Pness

Running a node

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.

Stay in touch

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 :)

@mafintosh
Copy link
Author

@martinheidegger thanks! i'm in the process of making a website for the swarm etc. will copy that onto there as well.

I also updated the gist to make use of the new cli you helped make.

@martinheidegger
Copy link

Happy to be useful 😺

@plankatron
Copy link

hi there , i am node id: 2f061d6437d6b9e35c1e99246e1e2d216860bce01a7adc47ab826c85b786d2a5

@plankatron
Copy link

my new id=d25df0e0420aefd3b7142d892d0bf38f09a7575504aee700fac313a873dc23f8

@bcomnes
Copy link

bcomnes commented Apr 22, 2020

Running 3.6.2 at dht.12core.net

@jwerle
Copy link

jwerle commented Apr 30, 2020

Running 3.6.3 at dht.12core.net with node ID: bdb7e9cae4a20000a00b09a9db7852d5db84e0587ada752ddef9982e469b2289

cc @bcomnes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment