In the case where the relay node and the block producing node are within the same network in a company LAN behind a proxy, when updating topology, should addr value be the local LAN IP? I see public ip being mentioned in tutorials, what is a public ip in this case? what else needs to be done from network perspective for the relays and the block producing node to participate in the network?
Block producer topology (192.168.168.140 and 192.168.168.141 are local LAN ips for two relay nodes):
{
"Producers": [
{
"addr": "192.168.168.140",
"port": 3001,
"valency": 2
},{
"addr": "192.168.168.141",
"port": 3001,
"valency": 2
}
]
}
Relay node topology (192.168.168.143 is block producer local LAN IP)
{
“Producers”: [
{
“addr”:“192.168.168.143”,
“port”: 3001,
“valency”: 1
},{
“addr”: “relays-new.cardano-mainnet.iohk.io”,
“port”: 3001,
“valency”: 2
}
]
}
In such a situation where you have servers with local IPs, will I use the local ip for host-addr when starting a node?
cardano-node run
–topology testnet-topology.json
–database-path db
–socket-path db/node.socket
–host-addr x.x.x.x
–port 3001
–config testnet-config.json