Skip to content

lsnet 0.8.0

Choose a tag to compare

@sanford sanford released this 05 Oct 05:00
· 34 commits to main since this release

Names for Windows PCs, Samba servers and NASes

lsnet now asks every device it finds for its NetBIOS name. Windows PCs, Samba servers and many NASes answer with their computer name ("DESKTOP-4F2K", "OFFICE-NAS") and their MAC address, so they get a name, and a vendor, even without sudo. Windows PCs named the default way (DESKTOP-…, LAPTOP-…) show as Computer · Windows PC. The details pane (and --json) has a new NetBIOS section.

MAC addresses from Bonjour

Some devices put their MAC address in the names they advertise over Bonjour: AirPlay speakers and TVs, and Linux workstations. lsnet now uses those when the ARP table doesn't have one, so the MAC and vendor columns can fill in without sudo. AirPlay's addresses are usually private ones, which show as (private MAC).

Devices that miss the broadcast are asked directly

UPnP (routers, TVs, NASes) and TP-Link Kasa discovery go out as multicast and broadcast, which Wi-Fi networks often filter. Devices that didn't answer are now asked again one by one. On one home network this found Kasa plugs that the broadcast had missed, with the names their owners gave them.

More devices recognized

  • Apple TV by its remote-control service, Vizio TVs, Nanoleaf and Elgato lights, Xiaomi smart home devices, Plex media servers and network scanners.
  • Fire TVs show the name their owner gave them ("J's Fire TV").

Upgrading from 0.7.0

--json output has two new fields: netbios on devices that answered (with name and mac), and mac under mdns when a Bonjour name carried one. Nothing was removed or renamed.

Download

  • macOS (Apple silicon): brew install sanford/tap/lsnet, or download lsnet-macos-arm64.tar.gz below (signed and notarized)
  • Windows: scoop install sanford/lsnet, or download lsnet-windows-x64.zip below
  • Anywhere with Rust: cargo install lsnet

Full changes: v0.7.0...v0.8.0