btcpayserver / btcpayserver-docker

Docker resources for hosting BTCPayServer easily
MIT License
588 stars 362 forks source link

Help needed: c-lightning node announce address is internal IP #349

Open teval20 opened 4 years ago

teval20 commented 4 years ago

Since some upgrades ago the announce address for my c-lightning node that is installed through BTCPay Server docker is announcing my internal IP address. How do I change this?

03c1cf3c3ba4a1b28785a5fd47c93952ac6474042b2af696b26a7007a22bd653d7@192.168.1.150:9735 is the current Node URI that is announced(together with the Tor Node URI)

NicolasDorier commented 4 years ago

Can you check cat /var/lib/docker/volumes/generated_clightning_bitcoin_datadir/_data/config

NicolasDorier commented 4 years ago

On my install I have

announce-addr=nico2.temp.btcpayserver.org:9735
announce-addr=uewlcjmuuwcgs43lpcc7d64k2pf4xs7yyer7ztsq6cblyjxue3bc35qd.onion:9735

The first one should be the $BTCPAY_HOST you configured.

NicolasDorier commented 4 years ago

On my host, since the host is a public host resolved to a public IP the getinfo works fine

   "address": [
      {
         "type": "ipv4",
         "address": "172.81.183.186",
         "port": 9735
      },
      {
         "type": "torv3",
         "address": "uewlcjmuuwcgs43lpcc7d64k2pf4xs7yyer7ztsq6cblyjxue3bc35qd.onion",
         "port": 9735
      }
   ],