ĞDev5 smiths

Actually polkadot guesses the public addr at startup:

2023-01-05 19:17:16 🔍 Discovered new external address for our node: /ip4/5.135.160.24/tcp/30333/ws/p2p/12D3KooWHswPUroThetPjvAHL9T64XkT4YxZjgYie49FHL1G55AH

But this cannot work when behind a proxy if you don’t map the P2P port to the very same one on the host. Then you need to configure the public address. Here is what I came up with for my server:

      - DUNITER_PUBLIC_ADDR=/dns/gdev.pini.fr/tcp/443/wss

then polkadot automagically completes it with the endpoint path:

2023-01-05 19:17:13 🔍 Discovered new external address for our node: /dns/gdev.pini.fr/tcp/443/wss/p2p/12D3KooWHswPUroThetPjvAHL9T64XkT4YxZjgYie49FHL1G55AH
4 Likes