So I have a question regarding network connectivity within LN nodes.
I have public lightning network node. it has real public IP address (let's say 18.104.22.168), which one is announced in config file. also, there is a TOR service, with configured .onion service (let's say mynode.onion). On the nodes config file there is no proxy configuration, so my node communicates with the rest of the world using clearnet. So from the outside world my node is available on 22.214.171.124:9735 and mynode.onion:9735. While outgoing connections are made from 126.96.36.199.
Now I have a friend, who's also node operator. He's a paranoid (his node is only available as a TOR hidden service on friendsnode.onion) and needs some incoming capacity. As i understand (please correct me if i am wrong), the only way to open channel to him is possible that way:
- connect from my friends node to my node using my clearnet IP 188.8.131.52
- connect from my node to friends node using his node ID
- open a channel to him, using his node ID
my question is:
- what will happen in case of node restart or any other accidental event which can interrupt the current connection.
- Will the nodes re-connect to each other without any manual operations?
I have two LN nodes on my LAN. each node has its local IP (let's say NodeA - 192.168.0.1 and NodeB - 192.168.0.2) and both nodes have their dedicated public ip (let's say 184.108.40.206 and 220.127.116.11). The nodes have in their config files announcing the real IPs, not local ones. I would like to create a channel NodeA -> NodeB, but want to do so using local addresses. So what i do:
- on NodeA connect to NodeB email@example.com:9735
- open a channel NodeA -> NodeB
my question is:
- will it connect at all (not tested, but i assume - yes)
- will the nodes reconnect correctly on restart? (is the NodeB connection network address stored in DB/config files on NodeA or is it retrieved from "announced" addresses somehow from NodeB each time? )
- will be the LAN address of any node somehow visible to rest of the network? (assuming that beside NodeA<->NodeB channel there are non-related channels to third-party public node from each node as well)
Appreciate your answers!
edit: formatted & fixed some typo