https://www.zerotier.com/manual.shtml#2_2_3
- A network ID is 16 hex digits (9bee8941b5de0691)
- A node ID is 10 hex digits (1234512345)
- fd9b:ee89:41b5:de06:9199:9312:3451:2345
- fc2e:308f:d012:3451:2345:0000:0000:0001
https://www.zerotier.com/manual.shtml#2_2_3
The RFC4193 is simpler
Something like:
function toRfc4193Ip (networkId, memberId) {
return `fd${networkId}9993${memberId}`.match(/.{1,4}/g).join(':')
}
js 6plane