Skip to content

Commit 083cf8d

Browse files
docs: update the docs in according with the new code
Suggested-by: @rustyrussell Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 640a6e5 commit 083cf8d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

doc/lightning-connect.7.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ be of the form *id@host* or *id@host:port*. In this case, the *host* and
1818

1919
*host* is the peer's hostname or IP address.
2020

21-
If not specified, the *port* defaults to 9735.
21+
If not specified, the *port* depends on the current network:
22+
- bitcoin **mainnet**: 9735.
23+
- bitcoin **testnet**: 19735.
24+
- bitcoin **signet**: 39735.
25+
- bitcoin **regtest**: 19846.
2226

2327
If *host* is not specified (or doesn't work), the connection will be attempted to an IP
2428
belonging to *id* obtained through gossip with other already connected

doc/lightningd-config.5.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ network.
370370
Note that for simple setups, the implicit *autolisten* option does the
371371
right thing: for the mainnet (bitcoin) network it will try to bind to
372372
port 9735 on IPv4 and IPv6, and will announce it to peers if it seems
373-
like a public address.
373+
like a public address (and other default ports for other networks,
374+
as described below).
374375

375376
Core Lightning also support IPv4/6 address discovery behind NAT routers.
376377
If your node detects an new public address, it will update its announcement.

0 commit comments

Comments
 (0)