Alice: listening node
- Machine IP192.168.1.20
- Listen on0.0.0.0:7443
- Reachable as192.168.1.20:7443
- Data dir./alice
Local network example
Start Alice as the listening node on 192.168.1.20,
then start Bob as the connecting client from
192.168.1.30. After the handshake, both sides can send
encrypted messages over the same peer session.
Replace these addresses with the real LAN IP addresses from your two computers.
0.0.0.0 only for the local listening address. Use
the other machine's real LAN IP address with --connect.
Do not use 127.0.0.1 to reach a different computer.
Run one terminal on each machine. Each person creates a local encrypted identity and chooses a passphrase.
pqcove init --name Alice --data-dir ./alice --insecure-dev-mode
pqcove init --name Bob --data-dir ./bob --insecure-dev-mode
Alice listens first. Bob starts the same client and initiates the connection to Alice's reachable address.
pqcove client --listen 0.0.0.0:7443 --data-dir ./alice --insecure-dev-mode
pqcove client --listen 0.0.0.0:7444 --connect 192.168.1.20:7443 --data-dir ./bob --insecure-dev-mode
/lazy inside the client to
walk through Alice/Bob, IP, Node/Client, PIN verification, and peer
selection.
After connection, both peers derive the same 9-digit pairing PIN
in XXX-XXX-XXX format. Compare it out of band before
trusting the peer.
pqcove> /peers
pqcove> /pin <peer-id>
pqcove> /verify <peer-id>
pqcove verify <peer-id> --sas --data-dir ./alice
Use /use to select an active peer, or send a direct
message with /msg.
pqcove> /use <alice-peer-id>
pqcove> Hello Alice from 192.168.1.30
pqcove> /msg <bob-peer-id> Hello Bob from 192.168.1.20
If both nodes are already running, either side can connect from the interactive shell.
pqcove> /connect 192.168.1.30:7444
pqcove> /connect 192.168.1.20:7443
ipconfig on Windows,
ip addr on Linux, or
ifconfig / System Settings on macOS.
7443 and 7444.