Bitcoin Forum
June 29, 2024, 08:28:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need some help with c-lightning. Address is not routable...  (Read 226 times)
jimbobway (OP)
Legendary
*
Offline Offline

Activity: 1304
Merit: 1014



View Profile
January 22, 2018, 07:00:06 PM
Merited by DannyHamilton (2)
 #1

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...
aleksej996
Sr. Member
****
Offline Offline

Activity: 490
Merit: 389


Do not trust the government


View Profile
January 22, 2018, 11:49:40 PM
Merited by achow101 (1)
 #2

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.
jimbobway (OP)
Legendary
*
Offline Offline

Activity: 1304
Merit: 1014



View Profile
January 23, 2018, 12:51:42 AM
 #3

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.
aleksej996
Sr. Member
****
Offline Offline

Activity: 490
Merit: 389


Do not trust the government


View Profile
January 27, 2018, 12:10:41 AM
Merited by examplens (1)
 #4

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 Smiley
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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!