@@ -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
2323You'll see output similar to:
2424
25- ```
25+ ``` bash
2626Jan 2 10:15:49.124 INF cli Starting DefraDB
2727Jan 2 10:15:49.161 INF net Created LibP2P host PeerId=12D3KooWEFCQ1iGMobsmNTPXb758kJkFc7XieQyGKpsuMxeDktz4 Address=[/ip4/127.0.0.1/tcp/9171]
2828Jan 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
2152182 . Configuring NAT hole punching
2162193 . 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