Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jimbobway on January 22, 2018, 07:00:06 PM



Title: Need some help with c-lightning. Address is not routable...
Post by: jimbobway on January 22, 2018, 07:00:06 PM
bitcoind is running and is synchonized. I am trying to run lightning with the first command and I get this error:

lightningd/lightningd --log-level=debug

    lightningd(3684): Trying to guess public addresses...

    lightningd(3684): Address 192.168.1.12:9735 is not routable

    lightningd(3684): Failed to connect 10 socket: Network is unreachable

My bitcoin.conf file has these lines:

    server=1

    rpcuser=aUser

    rpcpassword=aPassword

Any help would be appreciated.
My computer is behind a router...


Title: Re: Need some help with c-lightning. Address is not routable...
Post by: aleksej996 on January 22, 2018, 11:49:40 PM
I think your node needs to be accessible from the Internet in order for lightning-c to work.
You will probably need to put your computer in DMZ as with port forwarding your node will not be aware of the IP address of the node that is connecting to it.

You will need to specify your public IP address with an argument. I think --ipaddr is the argument for this.


Title: Re: Need some help with c-lightning. Address is not routable...
Post by: jimbobway on January 23, 2018, 12:51:42 AM
Thanks.  Ok, here is the fix:

Just make sure to forward port 9735 to the host running lightningd and add --ipaddr <your public ip> to the lightningd command line.

If necessary add rpcport=8332 to bitcoin.conf and reboot.


Title: Re: Need some help with c-lightning. Address is not routable...
Post by: aleksej996 on January 27, 2018, 12:10:41 AM
Thanks.  Ok, here is the fix:

Just make sure to forward port 9735 to the host running lightningd and add --ipaddr <your public ip> to the lightningd command line.

If necessary add rpcport=8332 to bitcoin.conf and reboot.


Yes :)
But as I said, I would recommend a setting up a DMZ instead as your node will see all incoming connections coming from your routers LAN IP address.
This is why you don't port forward Bitcoin node, as eventually your node automatically blacklists some node for spamming and then you can't get any inbound connections as it bans your router.