3

My BP and relays are on the same local subnet, I would prefer to give them the private IP address in the topology files.

However, all of the guides I've come across explicitly state using public IPs. Is there a problem with using private IPs in the topology files to connect my BP node and my relay nodes?

2

Each of your Cardano nodes needs a static IP address to communicate between each other. You can use IP or domain names.

Block Producer (BP) node

For better security, you can choose to set a private IP to your BP node to communicate with your relays (on the same private network) since your BP is hosting sensitive data you don't really want to expose.

Relay nodes

However, it is necessary that the relay nodes have a public IP address as the other external relay servers will need to establish incoming TCP/IP connections with yours to exchange and update informations.

You can set 1 public IP address for each one of your relays but you can also use a single public IP address and port-forward to share with your relays.

3
  • 1
    Hi @Bao, thank you for the feedback. I guess I was wondering why I would ever use the BP's public IP if I didn't need to, and I don't really see a need to. Sep 15 at 12:48
  • 1
    As long as your BP can communicate with your relays, it is not required to have a public IP address on your BP. But your relays will need at least 1 public IP to receive incoming TCP/IP connections.
    – Bao
    Sep 15 at 12:56
  • 1
    Great that’s all I need to hear, thank you Sep 15 at 12:56

This site is temporarily in read only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .