bee-docs icon indicating copy to clipboard operation
bee-docs copied to clipboard

clarify ipv6 behavior

Open attila-lendvai opened this issue 3 years ago • 3 comments

it's not clear from the docs whether bee prefers ipv6 when available, or how to control it. the (default) log also does not say much about ipv4/ipv6.

my upstream is ipv6, with a lame/unstable ipv4 tunnel, so it'd probably be better if bee preferred ipv6 here (Budapest, ex UPC, now Vodafone).

attila-lendvai avatar Jun 02 '22 13:06 attila-lendvai

I'm running a mainnet node on a VPS which is currently blocking IPv4. The node is running with a depth of 6 instead of its normal 9-10 when IPv4 was working. So you'll likely not be able to connect to as much of the swarm with only IPv6 based on this single data point.

ldeffenb avatar Jun 02 '22 15:06 ldeffenb

in my situation the best would probably be to try to use ipv6 to connect to peers that have ipv6, and only resort to ipv4 for peers that are not reachable through ipv6.

attila-lendvai avatar Jun 03 '22 15:06 attila-lendvai

to make things worse, my upstream's ipv4 tunnel doesn't seem to forward incoming connections, so my machine is not reachable through ipv4 at all.

it seems to be connected to enough peers, probably through outgoing connections:

  "population": 1618,
  "connected": 110,
  "nnLowWatermark": 3,
  "depth": 7,
  "reachability": "Private",
  "networkAvailability": "Unknown",

attila-lendvai avatar Jun 07 '22 18:06 attila-lendvai