You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/troubleshooting/lightning-network-error.md
+74-1Lines changed: 74 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,83 @@ To confirm you are having this issue, find the Lightning log on the status page
10
10
Jan 12 14:57:21 mynode lnd[15786]: unable to create server: unable to discover a NAT-PMP enabled device on the local network
11
11
```
12
12
13
-
This is caused by your network config being set to use Clearnet for Lightning. The Lightning daemon is attempting to communicate with your router to open a port and is failing. Disabling this setting will resolve the issue.
13
+
This is caused by your network config being set to use Clearnet for Lightning. The Lightning daemon is attempting to communicate with your router to open a port and is failing. Disabling Clearnet setting will resolve the issue.
14
+
15
+
If you router has public IP address and you are skilled and able to configure port forwarding there might be resolution for advanced users to able to continue using clearnet.
14
16
15
17
## Resolution
16
18
17
19
First, go to the main settings page on your node and scroll to the "Networking" section. In the row for Lightning, disable Clearnet and enable Tor. Save the config. Your device will reboot and Lightning should start as expected.
18
20
19
21
If you are still having issues, that setting may not have taken effect because of a [custom Lightning config](/advanced/customize-config.md). Reset your custom Lightning config back to the default so the network settings can take effect.
22
+
23
+
## Advanced User Resolution
24
+
25
+
As UPnP is not working Advanced Resolution requires user to manually configure port forwarding to router / firewall device and add required parameters to Additional LND Config on MyNode. Even with this case, it may not work due some ISP's do not provide your router real public IP address.
26
+
27
+
Configure onto modem/router/firewall portforwarding from any public IP address to routers public TCP port 9735 to you MyNode private network IP address port 9735.
28
+
29
+
Go to MyNode main settings page. Find "Lightning" below it click "Edit Config" and "LND Custom Config" page opens.
30
+
Onto "Additional LND Config" text box enter configuration lines:
31
+
```
32
+
# Nonworking UPnP Router fix
33
+
nat=false
34
+
35
+
[Application Options]
36
+
externalhosts=<YOUR-EXTERNAL-IP>:9735
37
+
```
38
+
39
+
As usually public IP addresses of home Internet connections are not static, and therefore change once a while. So this solution is acceptible _only if you have _real_ static IP_ from your ISP (or cloud) provider.
40
+
41
+
Internet connections with Dynamic Public IP addresses require bit more configurations.
42
+
43
+
Dynamic DNS must be implemented and DNS hostname must be configured to Additional LND Config.
44
+
45
+
Dynamic DNS (DDNS) hostname can be created free by opening account to eg. www.no-ip.com, but free DDNS hostnames must be re-verified every 30 days or so. Let's say you make account and create DDNS hostname "mymynodebtc.ddns.net".
46
+
47
+
To keep DDNS hostname's IP address updated in case of IPS changes your address, you need to do one of following.
48
+
49
+
a) Install and configure DDNS Client software to your MyNode (eg. https://www.noip.com/download?page=linux ) and verify it's proper functioning.
50
+
51
+
b) Configure DDNS Service onto your Modem/Router/Firewall if it supports such function (eg. some Sagemcom cable modems do support).
52
+
53
+
After these are done, you can add following lines in your Additional LND Config (do not include one line with IP Address shown above!)
54
+
```
55
+
# Nonworking UPnP Router fix
56
+
nat=false
57
+
58
+
[Application Options]
59
+
tlsextradomain=mymynodebtc.ddns.net
60
+
externalhosts=mymynodebtc.ddns.net:9735
61
+
```
62
+
63
+
Naturally use your own DDNS hostname instead of this sample one. Press Save and you MyNode will reboot with new settings.
64
+
65
+
From MyNode Main page click Lightning - Wallet. Notice on "URI" you have your node long ID followed by your IP address:9735 shown! This means successful configuration. Now click TLS Certificates button _regenerate_. After regeneration is complete in a monent, click download and save certificate (on Windows machine) as tls.crt (not .cert!). Open .crt file and verify from Details tab field "Subject Alternative Name". Your DDNS hostname must included on the DNS Name= ... list.
66
+
67
+
Now your LND is able to receive channels from clearnet.
68
+
69
+
If you own the domain (say mydomain.com) you can add CNAME for DDNS address alias onto you domain DNS records like this:
70
+
71
+
```myownnode IN CNAME mymynodebtc.ddns.net.```
72
+
73
+
Add this new hostname with additional tlsextradomain to config. In such more Advanced case config would be now
74
+
```
75
+
# Nonworking UPnP Router fix
76
+
nat=false
77
+
78
+
[Application Options]
79
+
tlsextradomain=myownnode.mydomain.com
80
+
tlsextradomain=mymynodebtc.ddns.net
81
+
externalhosts=mymynodebtc.ddns.net:9735
82
+
```
83
+
Recreate TLS certs, download and verify DNS Name= list from cert.
84
+
Now your node can be connected with short address:
85
+
86
+
```https://myownnode.mydomain.com:9735```
87
+
88
+
And address will work even you ISP causes address changes.
89
+
90
+
If you now plan to provide BTCPay Server or LNbits onto clearnet - you are not quite done yet. BTCPay and LNbits require https traffic to public TCP port 443 and non-selfsigned TSL certificates. Such certs be created with Linux with certbot installed on MyNode. HTTPS traffic inside of MyNode can be forwared with nginx configs, but those configurations are out of scope for this guide.
91
+
92
+
Advanced User Resolution ends here. (So normal Resolution is a bit more simple.)
0 commit comments