Discover Operations

Sietch's discovery mechanisms allow vaults to find and connect with each other, even in environments with limited or no internet connectivity. This page explains how discovery works and how to effectively use its features.


Understanding Discovery Mechanisms

Sietch employs several methods to find peers:

Gossip Protocol

Lightweight UDP broadcast messages that help vaults announce their presence on local networks without central servers.

Manual Peering

Direct specification of known peer IP addresses for environments where automatic discovery isn't possible or desired.

Planned Extensions

Future versions may include Bluetooth, NFC, and QR-code based discovery for offline sharing scenarios.


Basic Discovery Command

sietch discover

The core command for finding other vaults on your local network.

Bash
$sietch discover
Click to copy

This command sends UDP broadcast messages on your local network and listens for responses from other Sietch vaults. Results show the vault ID, name, and IP address of discovered peers.

Options:

OptionTypeDescription
--timeoutdurationHow long to search (default 5s)
--jsonflagOutput in JSON format
--verboseflagShow detailed discovery information
--portintCustom discovery port (default 7645)
Basic Discovery
# Discover peers on local network
sietch discover
Extended Search
# Search longer for peers
sietch discover --timeout 10s
Detailed Output
# Show verbose discovery information
sietch discover --verbose --json
Discovery works best on networks where UDP broadcast is supported. Some corporate or public networks may block these broadcasts.

Managing Peers Manually

sietch peer

When automatic discovery isn't possible, you can manually manage peer connections.

  • Add known peers by IP address or hostname
  • List currently known peers
  • Remove peers that are no longer needed
  • Mark peers as trusted for automatic sync

Core Peer Commands:

Add Peer
# Add a known peer
sietch peer add 192.168.1.42
Add with Name
# Add a peer with custom name
sietch peer add 192.168.1.42 --name field-laptop
List Peers
# List all known peers
sietch peer list
Remove Peer
# Remove a peer
sietch peer remove 192.168.1.42

Security Considerations


Advanced Discovery Features

Discovery Modes

Sietch offers different discovery modes for different environments:

  • Broadcast: Default mode, sends UDP broadcasts (best for home/small networks)
  • Multicast: Uses IP multicast for more efficient discovery in larger networks
  • Static: Uses only manually configured peers (for high-security environments)
  • Hybrid: Combines methods for maximum discovery potential
Bash
$sietch discover --mode multicast
Click to copy

Persistent Discovery

Keep discovery running to find peers as they come online:

Bash
$sietch discover --watch
Click to copy
  • Continuously watches for new peers joining the network
  • Automatically updates the peer list
  • Great for dynamic environments where peers come and go

Discovery Configuration

Configure discovery behavior in your vault settings:

Bash
$sietch config discovery --broadcast-interval 30s --ttl 2
Click to copy
SettingDescription
broadcast-intervalHow often to broadcast presence
ttlNetwork hop limit for discovery packets
auto-add-peersAutomatically add discovered peers
trusted-networksNetworks where discovery is allowed

Troubleshooting Discovery

  • No peers found: Check network settings, firewall rules, and that other vaults are running
  • Peers visible but unreachable: Check for firewall rules blocking the sync port
  • Discovery too slow: Adjust timeout settings or use manual peering
  • Too many peers found: Use filters to limit discovery scope

Discovery Diagnostics

Bash
$sietch diagnose-discovery
Click to copy

This command provides detailed information about your network configuration, discovery capabilities, and potential issues.


Practical Discovery Scenarios

Journalist Field Kit

# Discover only trusted field devices
sietch discover --filter-name "field-kit-*"

# Add trusted peer manually when UDP is blocked
sietch peer add 192.168.1.100 --name trusted-editor --trusted

Research Team Collaboration

# Set up a persistent discovery service
sietch discover --watch --auto-add-peers

# Export discovered peers to share with offline team members
sietch peer export --discovered-since 2h > discovered-peers.json

Next Steps:
Learn about Security Model to understand how Sietch protects your peer connections and data transfer.