<p>Your question seems a little bit underspecified. So not sure if I can really help you. The host is your public IP address so if you are logged on the machine on which the lightning node runs you can try typing <code>curl -4 https://icanhazip.com/</code> to the command line. </p>

<p>if you are running <code>c-lightning</code> you can do: <code>lightning-cli getinfo</code> and it will also depict your public IP address. Not sure if the other implementations have an API call to depict this information.</p>

CC BY-SA 4.0
2019-02-25T17:28:28.550Z
LND requires setting the information for generating the certificates for SSL (required) so the user must specify their own information.  Will add a link in a second
PW Kad
CC BY-SA 4.0
2019-02-26T14:27:54.027Z
@rene thank you for response i was able to realize my host is my ip address which i was able to obtain. i got the port for LN as well. unfortunately i was still unable to open a channel with a friend. i gave it a try and thank you for the help.
Joe Saz
CC BY-SA 4.0
2019-02-26T14:28:18.503Z
@pw kad thank you for your reply as well. take care guys.
Joe Saz
CC BY-SA 4.0
2019-02-25T16:34:17.477Z
2019-02-25T16:34:17.477Z
Rene Pickhardt
<p>I cannot find where to get the host to complete a lightning channel. I have tried searching in the command prompt but cannot find host info anywhere.</p>

<lightning-network><hosting>
how do i get my @host for LN
Joe Saz
# how do i get my @host for LN

(Asked by: username_0 on 2019-02-25)

I cannot find where to get the host to complete a lightning channel. I have tried searching in the command prompt but cannot find host info anywhere.

**Tags:** lightning-network, hosting


---

## 1 answers

### Answer by username_1 on 2019-02-25. Score: 0

Your question seems a little bit underspecified. So not sure if I can really help you. The host is your public IP address so if you are logged on the machine on which the lightning node runs you can try typing `curl -4 https://icanhazip.com/` to the command line.

if you are running `c-lightning` you can do: `lightning-cli getinfo` and it will also depict your public IP address. Not sure if the other implementations have an API call to depict this information.

> **Comments:**
> **username_2**: LND requires setting the information for generating the certificates for SSL (required) so the user must specify their own information.  Will add a link in a second  
> **username_0**: @rene thank you for response i was able to realize my host is my ip address which i was able to obtain. i got the port for LN as well. unfortunately i was still unable to open a channel with a friend. i gave it a try and thank you for the help.  
> **username_0**: @pw kad thank you for your reply as well. take care guys.  

---

