Skip to content

Address dynamic IP addresses without requiring a restart with new configuration #5351

@s8sato

Description

@s8sato

S. Sato, [2025/02/04 16:18]
The requirement for a "static" IP address in the testnet prerequisites (https://wiki.sora.org/running-a-sora-testnet-node.html#prerequisites) could be relaxed. More precisely, the IP address can be dynamic, but each time a peer reconnects, it must update its advertised address and restart.

S. Sato, [2025/02/04 16:18]
This is due to the way peers remember and gossip other peers' addresses. Instead of adopting the counterpart’s address from the actual TCP stream, peers accept the self-reported advertised address, store it, and share it with other peers. The reason for using self-reported advertised addresses is that an address extracted from an actual TCP stream may not be valid for other peers.

S. Sato, [2025/03/10 15:03]
Just a thought, but alternatively, we could derive the counterpart's address from the TCP stream, prohibiting private IP addresses to expect every IP address should be globally valid

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions