Hey guys, I’m trying to understand a few things here.
I want to run a DHT, where certain peers are behind a NAT. I want every peer in the network to be able to find out about and communicate with each other (even ones behind NAT).
According to this post, my understanding is that peers behind NATs can rely on other peers to relay for them. In other words, does this mean that peers behind NATs can still have their address entry present in the DHT routing table, as described here, and that other peers will be able to find them via the DHT?
My questions are:
- Is AutoRelay enabled by default? If not, how can I enable it?
- Does AutoRelay work with Kad-DHT out of the box? Or do I need to configure it somehow?
- If the answer to the above two are yes, then does that mean that the only thing I need to do to get the desired behavior I described is to make sure that DHT server mode is enabled on all peers, including those behind NATs?
Thanks so much for the help