Skip to content

Commit 174a298

Browse files
update
1 parent ff6df1b commit 174a298

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/defradb/Procedural/peer-to-peer-procedural.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Before following these guides, ensure you have:
88

99
- DefraDB installed on your system
1010
- Basic familiarity with command-line interfaces
11-
- Understanding of [P2P networking concepts](link-to-concepts-page)
11+
- Understanding of [P2P networking concepts](/defradb/Conceptual/peer-to-peer-conceptual.md)
1212

1313
## Start and configure DefraDB
1414

@@ -22,7 +22,7 @@ defradb start
2222

2323
You'll see output similar to:
2424

25-
```
25+
```bash
2626
Jan 2 10:15:49.124 INF cli Starting DefraDB
2727
Jan 2 10:15:49.161 INF net Created LibP2P host PeerId=12D3KooWEFCQ1iGMobsmNTPXb758kJkFc7XieQyGKpsuMxeDktz4 Address=[/ip4/127.0.0.1/tcp/9171]
2828
Jan 2 10:15:49.162 INF net Starting internal broadcaster for pubsub network
@@ -51,6 +51,7 @@ defradb start --p2paddr /ip4/0.0.0.0/tcp/9172
5151
```
5252

5353
**Parameters**:
54+
5455
- Replace `<ip_address>` with your actual IP address (use `0.0.0.0` to listen on all interfaces)
5556
- Replace `<port>` with your desired port number
5657

@@ -83,6 +84,7 @@ defradb start --peers /ip4/192.168.1.100/tcp/9171/p2p/12D3KooWEFCQ1iGMobsmNTPXb7
8384
```
8485

8586
**Parameters**:
87+
8688
- Replace `<ip_address>` with the peer's IP address
8789
- Replace `<port>` with the peer's P2P port
8890
- Replace `<peer_id>` with the peer's Peer ID
@@ -170,6 +172,7 @@ curl -X POST http://localhost:9181/api/p2p/replicators \
170172
```
171173

172174
**Parameters**:
175+
173176
- `ID`: The Peer ID of the node you want to replicate to
174177
- `Addrs`: Array of multi-addresses for the peer
175178
- `Collections`: Array of collection names to replicate (e.g., `["Books"]`)
@@ -215,4 +218,4 @@ If peers can't connect within the same home Wi-Fi network, this is typically due
215218
2. Configuring NAT hole punching
216219
3. Connecting peers through the internet rather than the local network
217220

218-
See the [P2P concepts](link-to-concepts-page) page for more information on NAT traversal.
221+
See the [P2P Conceptual](/defradb/Conceptual/peer-to-peer-conceptual.md) page for more information on NAT traversal.

0 commit comments

Comments
 (0)