Skip to main content

host_discover

Function host_discover 

Source
pub fn host_discover(
    port: u16,
    timeout_ms: u64,
    subnet: Option<Ipv4Addr>,
) -> Result<()>
Expand description

Scan the local /24 for hosts answering on port, printing each reachable ip:port — labeled (known: <name>) when the IP already appears in a registered host’s ssh_target. Finding nothing is success (exit 0), not an error; a probe is a bare TCP connect, no auth, no data.