# LND Rest API (address/port)

**URL:** <https://community.umbrel.com/t/lnd-rest-api-address-port/3609>\
**Category:** Support and Troubleshooting\
**Created:** [September 24, 2021, 12:31am UTC](https://community.umbrel.com/t/lnd-rest-api-address-port/3609 "2021-09-24T00:31:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvie](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alvie](https://community.umbrel.com/u/Alvie)\
**Post date:** [September 24, 2021, 12:31am UTC](https://community.umbrel.com/t/lnd-rest-api-address-port/3609/1 "2021-09-24T00:31:31Z")

</div>

Hello,

I am trying to create my own lightning address with my own domain name and I am using [http://bridgeaddr.fiatjaf.com/](http://bridgeaddr.fiatjaf.com/) to achieve this. One of the parts it needs is the host and port for the LND rest api. I was assuming this would be [https://toraddress.onion:8080](https://toraddress.onion:8080) but that hasn’t worked.

Is there a separate address / other specified port for this. If so, how do I find it?

Edit: I found the host name here: `~/umbrel/tor/data/lnd-rest/hostname`.

but I get this message:

> The certificate is only valid for the following names: localhost, umbrel.local, unix, unixpacket, bufconn, 127.0.0.1, ::1, 10.21.21.9

![image](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/0/017110e516fff45e01e6d5252362ca61d7fbe3c2.png)

Is it unsafe to share/expose this address? No-one can do anything without a macaroon, right? So if I bake a macaroon with only permissions to create invoices, the worst thing someone can do is to create an invoice that pays me?

Thanks,  
Alvie

---

<div class="post-metadata">

**Author:** ![blckbx](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@blckbx](https://community.umbrel.com/u/blckbx)\
**Post date:** [September 24, 2021, 7:55am UTC](https://community.umbrel.com/t/lnd-rest-api-address-port/3609/2 "2021-09-24T07:55:05Z")

</div>

Hey,

the certificate does not include your onion address. I’d try to expose it by adding to `lnd.conf`:  
`tlsextradomain=<address>.onion`  
and restart LND service/container. For safety reasons I wouldn’t share any address that is not necessarily needed to be known publicly.

---

<div class="post-metadata">

**Author:** ![Alvie](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alvie](https://community.umbrel.com/u/Alvie)\
**Post date:** [September 24, 2021, 8:30am UTC](https://community.umbrel.com/t/lnd-rest-api-address-port/3609/3 "2021-09-24T08:30:29Z")

</div>

Thanks for your insight. I’ll add the extra domain.

Regarding safety reasons, I understand your point and that was my worry too. Currently to me it seems like nothing can be done without a correct macaroon so as long as I keep my other macaroons safe, it should be okay. With this address, it’s currently in my DNS records (and I know the internet never forgets) but I’ll look into other methods to see if I can do it without exposing the address

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [September 24, 2021, 11:33am UTC](https://community.umbrel.com/t/lnd-rest-api-address-port/3609/4 "2021-09-24T11:33:43Z")

</div>

I used the same for my own domain. Works perfect.  
But, instead of creating CNAME use A records pointing to his IP server.  
You create a new macaroon using Thunderhub, dedicated to this LN address  
[Here more detail](https://telegra.ph/Pay-to-Lightning-Address-08-14)

---

<div class="post-metadata">

**Author:** ![BitcoinZAR](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/bitcoinzar/32/3216_2.png) [@BitcoinZAR](https://community.umbrel.com/u/BitcoinZAR)\
**Post date:** [October 15, 2022, 9:38am UTC](https://community.umbrel.com/t/lnd-rest-api-address-port/3609/5 "2022-10-15T09:38:14Z")

</div>

How do you create an invoice macaroon without Thunderhub?  
There is no option for Thunderhub app in my Umbrel node, so what is an alternative way to create the macaroon?
