How create a personal node c-lighting for create a new channel with other node

1

I want to create my personal node to create a new channel with another personal node, an example my node with URL 12345678@192.164.1.7 I want create a channel with another personal node.

I could not found some reference for this problem, can you help me for creating my personal node?

I try to add and parameter to command line --addr but this I think is not enough, right?

vincenzopalazzo

Posted 2019-08-26T20:06:06.820

Reputation: 572

Answers

1

First you will need to decide which machine will fund the channel. In the current implementation only one party can lock funds to a multi-sig address. Let's say the machine that will fund the channel is A and the other is B. Now open the c-lightning in the terminal on machine B and type lightning-cli getinfo. It will give you a bunch of information. Look for the id and address. Then open the c-lightning on your machine A's terminal and type lightning-cli connect id@address:9735. Where id and address are the info that you got from the getinfo command on machine B.

After connection has been established, you can then open the channel using the command lightning-cli fundchannel id satoshi [feerate] [announce] on your machine A. Here id is the node id of the node with whom you want to open the channel and satoshi is the amount of bitcoins in satoshis that you want to use to fund the channel. If you want to keep your channel private you can set announce to false.

If you want to expose the node to the internet and use the internal IP addresses you can do so by adding bind-addr=<internal_IP> and announce-addr=<public_IP> in the config files. You can also pass these commands in the terminal when starting the lightningd daemon, but it is easier to do it in config file so that you don't have to do it everytime you start the daemon.

Ugam Kamat

Posted 2019-08-26T20:06:06.820

Reputation: 5 180

if I want to create my personal node? with a node id and an ip?vincenzopalazzo 2019-08-27T08:25:53.983

@vincenzopalazzo what do you mean a personal node? A node that is not announced?Ugam Kamat 2019-08-27T10:52:36.120

Yes, I want create an channel on my nodevincenzopalazzo 2019-08-27T10:57:58.380

@vincenzopalazzo Can you explain with more clarity as to exactly what you are trying to achieve? I'm trying to understand your issue better.Ugam Kamat 2019-08-27T11:01:11.887

Mh yes, I want to create on the channel with node c-lightning X on my node c-lightning Y in the local network, my question is how to configure the node Y for accepting the command connect to node Xvincenzopalazzo 2019-08-27T11:12:32.287

@vincenzopalazzo I have updated my answer, let me know if you need anything else.Ugam Kamat 2019-08-27T11:29:10.563

Let us continue this discussion in chat.

vincenzopalazzo 2019-08-27T11:49:07.250