Skip to content

Running a node with dhtnode

Adrien Béraud edited this page Dec 13, 2015 · 39 revisions

dhtnode is a command-line utility included with OpenDHT to run, control and monitor an OpenDHT node.

Running dhtnode

dhtnode [-p local_port] [-b bootstrap_host:port] [-i] [-v]

  • -p allows to specify the local UDP port to bind (optional).
  • -b allows to specify a bootstrap node address.
  • -i will generate a DHT "identity" with the node (RSA key pair, and certificate published on the DHT).
  • -v will enable debug logs for OpenDHT to standard output.

for instance:

dhtnode -b bootstrap.ring.cx:4222 will run a node and use bootstrap.ring.cx port 4222 as a bootstrap node.

Commands

help

Show a command list with usage.

g {key}

Get values for {key}.

l {key}

Listen for value changes at {key}.

p {key} {string_value}

Put a text value at {key}.

Clone this wiki locally