Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

scan

Discover devices running connecto listen.

Usage

connecto scan [OPTIONS]

Description

The scan command discovers devices on your network that are running connecto listen. It uses:

  1. mDNS discovery - Finds devices advertising the _connecto._tcp service
  2. Subnet scanning - Scans saved subnets and optionally specified subnets

Options

OptionDescription
-s, --subnet <CIDR>Additional subnet to scan (can be repeated)
-t, --timeout <SECONDS>Scan timeout in seconds (default: 5)

Examples

Basic scan

connecto scan

Output:

  CONNECTO SCANNER

→ Scanning for devices...

✓ Found 2 device(s):

[0] mydesktop (192.168.1.55:8099)
[1] workstation (192.168.1.100:8099)

To pair with a device, run: connecto pair <number>

Scan additional subnet

connecto scan --subnet 10.0.2.0/24

Scan multiple subnets

connecto scan -s 10.0.2.0/24 -s 10.0.3.0/24

Discovery methods

mDNS Discovery

mDNS (multicast DNS) automatically finds devices on the same subnet. No configuration needed.

Limitations:

  • Only works within the same subnet
  • May be blocked by some network configurations

Subnet scanning

For VPN or cross-subnet scenarios, Connecto scans IP ranges directly.

Saved subnets are automatically included:

connecto config add-subnet 10.0.2.0/24
connecto scan  # Now includes 10.0.2.0/24

One-time subnets can be specified with --subnet:

connecto scan --subnet 10.0.2.0/24

Scan performance

Subnet SizeIPsApproximate Time
/242542-3 seconds
/221,0225-10 seconds
/1665,534Not recommended

Connecto scans up to 100 IPs concurrently with a 500ms timeout per IP.

No devices found?

If no devices are found:

  1. Ensure the target is running connecto listen
  2. Check firewall allows TCP 8099 and UDP 5353
  3. For VPN, add the remote subnet: connecto config add-subnet <CIDR>
  4. Try direct pairing: connecto pair <ip>:8099

See Troubleshooting for more help.