Background Mode
Run tunnels in the background with daemon mode.
Start Tunnel in Background
Add -d flag to run the tunnel as a daemon:
drip http 3000 -dThe tunnel runs in the background and survives terminal closure.
Multiple Background Tunnels
Run several tunnels simultaneously:
drip http 3000 -d
drip http 8080 -n api -d
drip tcp 5432 -dList Running Tunnels
View all active background tunnels:
drip listAlternative commands (aliases):
drip ls
drip ps
drip statusOutput shows:
- Tunnel type (HTTP/HTTPS/TCP)
- Local port
- Public URL
- Process ID (PID)
- Uptime
Interactive Mode
Select tunnels interactively to attach or stop:
drip list -iThis opens an interactive menu where you can:
- Select a tunnel to attach to its logs
- Select a tunnel to stop it
- View tunnel details
View Tunnel Logs
Attach to a running tunnel to see real-time logs:
drip attach http 3000Alternative commands:
drip logs http 3000
drip tail tcp 5432Press Ctrl+C to detach (tunnel keeps running).
If you don't specify type and port, you'll be prompted to select from running tunnels.
Stop Tunnels
Stop a specific tunnel:
drip stop http 3000Stop all running tunnels:
drip stop allAlternative command:
drip kill http 3000Daemon Storage
Daemon information is stored in ~/.drip/daemons/:
Info files: {type}_{port}.json
{
"pid": 12345,
"type": "http",
"port": 3000,
"subdomain": "myapp",
"server": "tunnel.example.com:443",
"url": "https://myapp.tunnel.example.com",
"start_time": "2024-01-12T10:30:00Z",
"executable": "/usr/local/bin/drip"
}Log files: {type}_{port}.log
Automatic Cleanup
Drip automatically cleans up stale daemon entries when:
- The process is no longer running
- The daemon info file is corrupted
- You run
drip list