Connection Diagnostics
This guide explains how to observe active connections and verify peer connectivity using Fungi CLI.
Prerequisite:
fungi daemonmust be running.Need binaries first? Download Fungi CLI from GitHub Releases.
Why This Matters
When file transfer or tunneling behaves unexpectedly, these commands help you quickly answer:
- Is the peer currently connected?
- Are streams being created on expected protocols?
- Is latency stable across active links?
Commands
Fungi provides two diagnostics entry points:
fungi connection(alias:fungi conn) for connection and stream snapshotsfungi ping <peer_id>for continuous RTT checks on active links
Inspect Active Connections
Show an overview of active connections:
fungi conn overview
Filter by peer:
fungi conn overview --peer-id 16Uiu2HAmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Filter by protocol:
fungi conn overview --protocol-name /fungi/tunnel/8080/1.0.0
Use verbose output:
fungi conn overview --verbose
Inspect Active Streams
List active streams:
fungi conn streams
Filter options are the same as overview:
fungi conn streams --peer-id 16Uiu2HAmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
fungi conn streams --protocol-name /fungi/tunnel/8080/1.0.0
fungi conn streams --verbose
Continuous Peer Ping
Run continuous ping on all active connections to a peer:
fungi ping 16Uiu2HAmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Set custom interval (milliseconds):
fungi ping 16Uiu2HAmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --interval-ms 1000
Show detailed output:
fungi ping 16Uiu2HAmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --verbose
Stop with Ctrl+C.
Practical Troubleshooting Flow
- Run
fungi conn overviewto confirm the peer has active connections. - Run
fungi conn streamsto verify stream activity on expected protocols. - Run
fungi ping <peer_id>to monitor RTT and check for intermittent instability. - If there are no active connections, verify allowed peers and relay/network settings in your config.