I'm running a node on a server which is hidden behind a firewall - thus it can't be reached directly from the outside. However, I would like other nodes in the network to be able to establish connections to my node.
I used ngrok to open a TCP tunnel on the respective port and with this obtained a public address which forwards all incoming traffic to the node, e.g.
tcp://2.tcp.ngrok.io:12345 -> localhost:9732
I managed to publish this address to the network by starting a secondary node and connecting explicity to the primary node using the --peer
parameter (or tezos-admin-client connect address
). After that, I could see a slow but steady increase of active connections in my node. So far, so good!
But since this is rather inconvenient, I would like to know if there is a more direct way to make the network, or even the node itself, aware of this address?