Usage
Basic Example
Options
Host to scan for services
Comma-separated list of ports to scan. Example:
3000,5432,6379Output results as JSON
Config file path
Examples
Scan Specific Ports
JSON Output
Scan Remote Host
Service Detection
Private Connect automatically detects service types based on port and protocol:| Port | Service Type |
|---|---|
| 5432 | PostgreSQL |
| 3306 | MySQL |
| 27017 | MongoDB |
| 6379 | Redis |
| 80 | HTTP |
| 443 | HTTPS |
| 3000 | HTTP (dev) |
| 8080 | HTTP (alt) |
Common Use Cases
Onboarding
Discover local services when setting up a new development environment
Environment Audit
See what services are running on a machine
Quick Setup
Rapidly expose multiple services at once
Troubleshooting
Verify which ports are in use
Interactive Mode
When runningconnect discover without --json, you’ll be prompted to expose discovered services:
Related Commands
connect expose- Manually expose servicesconnect dev- Project-based service managementconnect whoami- Check agent status
Exit Codes
0- Success1- Error (network issue, permission denied)2- Invalid arguments