Run OpenDHT node in restricted network

Hi there,

In our country we have totalitarian regim which cutt of the international internet when ever they want. I thinking of running OpenDHT node on my server, but i have question, what happened if i lost connection to bootstrap server (bootstrap.jami.net). Generally how can I make sure we can still communicate using jemi when internet cutt of and only interanet available

1 Like

Hey, Jami actually posted about this Jami survival kit: Internet down? Keep talking!

you can host your own dht node and have that node be the bootstrap for everyone. That way if there is no external internet connection, people can still connect to your local node. Additionally you can enable “local peer discovery” to find other jami clients on the same network. Here’s the exerpt that’s probably important to you

Using Jami Without Internet, Beyond the LAN :globe_showing_europe_africa:

If you want to reach users outside your local network during an internet outage, you’ll need to rely on a concept called a bootstrap.

:link: What is a bootstrap node?

All Jami devices act as nodes in a decentralized web. To enter this web, your device must connect to at least one other node. That first point of contact is called a bootstrap.

Normally, Jami uses a public bootstrap (e.g. bootstrap.jami.net). But if that’s unavailable, someone else can host one and share its IP or hostname with you. In order to host a bootstrap the complete documentation on how to run such a node as a bootstrap can be found here.

:test_tube: Example: Running a Bootstrap Node with Docker

‌docker run -d -p 4222:4222/udpghcr.io/savoirfairelinux/opendht/opendht-alpine dhtnode -b bootstrap.jami.net -p 4222 -s

:hammer_and_wrench: Once the node is running:

  1. Go to Account Settings → Advanced Settings

  2. Replace the default bootstrap address with the new one

  3. Save and restart Jami.

2 Likes