Test just above was using IPv4. Running IPv6 also works but is a little harder to configure:
-
node configuration is the same with
--local-ip,--external-ipand-hoptions specifying IPv6 addresses instead of IPv4 -
but sn_api configuration needs 2 files simultaneously:
~ # cat ~/.safe/node/node_connection_info.config
[
"[fd2f:9ab3:8b80:69fa::3]:5483"
]
~ # cat ~/.safe/client/sn_client.config
{
"hard_coded_contacts": [
"[fd2f:9ab3:8b80:69fa::3]:5483"
],
"external_ip": "fd2f:9ab3:8b80:69fa::2",
"local_ip": "fd2f:9ab3:8b80:69fa::2",
"forward_port": false
}
(where “fd2f:9ab3:8b80:69fa::2” is client address and “fd2f:9ab3:8b80:69fa::3” is contact node address)