How to set up DHT node, in advanced settings

I installed dhtnode using ubuntu in the LAN, and then started it according to the method in the document: sudo systemctl start dhtnode

Then in the advanced settings, is it enough to fill in ip:4222 in the bootstrap settings? As shown below

When I set it up, I don’t see anything wrong, but why am I still able to find other users in my search who are not on my local network?
If my local dhtnode is active, shouldn’t I only find my local jami users?

I’m a newbie, thanks!!

The bootstrap is only the entry point and then other nodes will be discovered and cached for future use.
If you want a LAN you need to remove the cache first.
But as soon as one external node is discovered, the mesh network will grow

3 Likes

Thanks for your reply.
Some other questions

  1. Do I need to add port 4222 when setting up dhtnode? Or if it just fill in the IP, port 4222 will be searched first by default?
  2. Is every jami client also a dhtnode? So dht will be cached and provided to other nodes for query?
1 Like
  1. yes I think so if I remember well. Also this field can have multiple nodes separated by “;”
  2. Yes (unless DHT Proxy is enabled), that’s how “local peer discovery” works basically, it search via udp broadcast other nodes. and that’s why “current DHT port used” can be configured, 0 will do arandom bind.
2 Likes


So, when I configure it like this in the picture, it means:

  1. jami will first obtain DHT through 192.168.100.100:4222
  2. At the same time, other nodes will be discovered by broadcasting on the LAN.
  3. Will the local jami client use a random port as the dht service port to provide query functions to other jami nodes connected to my local area?
    Is it right?
2 Likes