Skip to content

Releases

lsnet 0.15.1

Choose a tag to compare

@sanford sanford released this 21 Nov 12:39

A maintenance release: a signed Windows binary, and sturdier mDNS.

Signed on Windows

lsnet.exe is now signed by its publisher, Awesome Machinery, LLC, so Windows names who made it instead of warning about an unknown publisher. (The macOS binary was already signed and notarized.)

Sturdier mDNS

lsnet reads the mDNS answers every device on your network sends, and now uses simple-dns 0.13.1:

  • A malformed packet from the network can no longer make lsnet set aside a large amount of memory before reading it.
  • A device whose name contains a dot (an NDI source named after a Mac, STAGE-MBP.LOCAL (Scan Converter)) still shows its whole name.

Also

  • tokio 1.54 and rustix 1.1.6 fix two soundness advisories (RUSTSEC-2026-0386, -0486).

Install

brew upgrade sanford/tap/lsnet     # macOS and Linux
winget upgrade Sanford.lsnet       # Windows
cargo install lsnet

Full changes: v0.15.0...v0.15.1

lsnet 0.15.0

Choose a tag to compare

@sanford sanford released this 08 Nov 02:44

Telling you when macOS keeps lsnet off the network

When your terminal app doesn't have macOS's Local Network permission, the system quietly stops lsnet from reaching most of your devices, and a scan finds far fewer devices and services than are really there. 0.14.1 started noticing this, but only said so in a dim note that was easy to miss.

Now lsnet says so in a popup as soon as the scan notices, with what to do about it:

  • o opens System Settings at Privacy & Security › Local Network, where you can allow your terminal app.
  • r scans again once you have.
  • Any other key closes it. It stays closed until the next scan.

While the scan is blocked, the summary line starts with a yellow "off the local network", even in a narrow terminal. lsnet --list still shows the same note under the results.

Install with winget

lsnet is now in winget, so on Windows:

winget install Sanford.lsnet

Full changes: v0.14.1...v0.15.0

lsnet 0.14.1

Choose a tag to compare

@sanford sanford released this 11 Oct 01:28

When macOS keeps lsnet off the local network

macOS asks before letting an app onto the local network, and for a command-line tool the app is the terminal it runs in. Until the answer is yes, connecting to anything but the router fails as if nothing were there. lsnet then found fewer devices than usual, and the services view listed the router alone, with nothing to say why. A macOS or terminal update can take the permission away again.

lsnet now says so. When most of the devices it heard some other way are ones the system wouldn't let it connect to, a line under the results reads:

macOS is keeping lsnet off the local network, so devices and their services are missing: allow your terminal app in System Settings > Privacy & Security > Local Network, then scan again

Turn your terminal on there (iTerm, Ghostty, VS Code or whichever you use) and scan again. Nothing changes on Linux or Windows.

v0.14.0...v0.14.1

lsnet 0.14.0

Choose a tag to compare

@sanford sanford released this 10 Oct 06:25

SNMP

Every device found is now asked to describe itself over SNMP. Printers, managed switches, UPSes and some NAS answer with a description, the name their admin gave them and their maker, and a printer with its model too, which is often the only place it says it: Brother HL-L2350DW series rather than its network card's name.

A printer, a switch, a UPS or a NAS is called that on SNMP's word. A description like Linux nas 5.10 names only the kernel, so it's shown in the details and decides nothing. The details have an SNMP section, and --json has snmp.

The questions are SNMPv1 with the community public, the read-only default wherever SNMP is switched on. Devices set up with another community, or with SNMPv3 alone, don't answer. On a network whose monitoring would mind the questions, --no-snmp leaves them out.

IPv6 addresses

lsnet still lists devices by their IPv4 address, and now adds each one's link-local IPv6 address (fe80::...) where it can find it: in the details as IPv6, in --json as ipv6, and /fe80 filters for it.

One ping to the all-nodes address reaches every device on the link, and most answer: Macs, iPhones, Linux and much that's built on it. Bonjour gives the addresses of whatever advertises over it. An answer is matched to a device by MAC address, so without MACs only Bonjour's are shown.

  • An address made from a MAC, like fe80::211:32ff:fe66:d871, gives a device its MAC and vendor when nothing else did.
  • A link-local address reaches a device whatever its IPv4 address, including one flagged off-subnet or link-local. Say which interface it's on: ssh admin@fe80::211:32ff:fe66:d871%en0.
  • With sudo, when the whole network was scanned, anything that answered over IPv6 and isn't one of the devices listed is named under the results.
  • The ping isn't sent on Windows, or on Linux when net.ipv4.ping_group_range leaves you out. There, only Bonjour's addresses are shown.

This machine's services

The services view (2, or -s) now lists the machine running lsnet with the rest, when its servers answer at its network address. One listening only on localhost isn't on the network, so it isn't listed.

--ports: look for ports of your own

lsnet -s --ports 2049,5900        # NFS and VNC
lsnet -s -p 8200-8210 -p 9000     # a range, and the option given twice

The ports are tried on every device found, not on every address, so they cost little, and each one open is listed by its number. It takes up to 1,000 ports. Past that it's a port scan, and nmap is the tool.

Upgrading from 0.13.0

  • A scan now sends two SNMP questions to each device it finds, and one IPv6 ping to all of them. It takes no longer. --no-snmp leaves out the first.
  • The services view and lsnet -s can gain rows for this machine.
  • Some devices gain a model, a MAC or a vendor they didn't have, and a printer, switch or UPS that had no type may get one.
  • --json gains ipv6 and snmp, and mdns gains ipv6; all only appear when there's something to say. Nothing was removed or renamed, and printed tables haven't changed.
  • scripts/anonymize.py now makes over link-local IPv6 addresses too, since they can carry a MAC.

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.13.0...v0.14.0

lsnet 0.13.0

Choose a tag to compare

@sanford sanford released this 10 Oct 04:37

Sort the list

Press s to sort the list by its next column: IP, name, then type, and back to IP. In the services view it's address, service, then host. ▾ marks the column, the row you were on stays selected, and devices that didn't answer stay at the bottom. Rows with no name or type come after the ones that have one.

Ping times

Each device found is pinged three times, and the best round trip is in its details as Ping, and in --json as ping_ms. It's missing for devices that ignore pings, and on Linux when net.ipv4.ping_group_range doesn't let you send them.

When a device's sources disagree

The details already said what decided a device's type and name. Now they also say when something else says otherwise:

  • Names differ lists a device's hostnames and who gave each, like raspberrypi.local (Bonjour) · study.lan (reverse DNS), when they aren't the same name. Usually the router's DNS still remembers whatever had the address before. Names that differ only in case, punctuation or domain count as the same, and so does a NetBIOS name cut off at 15 characters. Names people give devices, like AirPlay's "Living Room", aren't compared.
  • Disagrees lists any other type a device's own descriptions give it, like TV / streamer, from UPnP MediaRenderer by Denon for a speaker whose Bonjour model says it's a speaker. Only what a device says about its own model counts (Bonjour, Kasa, UPnP): open ports and MAC vendors are guesses, and a NAS running Plex is still a NAS.

/differ and /disagrees filter for them, and --json has names_differ and type_disagrees.

--also: find a device left on another network's address

lsnet already flags a device using an address from another network as off-subnet, but only once it hears it speak, and one sitting idle with a static address may not. --also asks for it:

sudo lsnet --also 192.168.0.0/24                      # the network it probably came from
sudo lsnet --also 192.168.0.0/24 --also 10.0.0.50/32  # more than one, or a single address

Every address in the range is asked for over ARP on this segment, along with the scan's own, and whatever holds one must answer, whatever network the question came from. Anything found is listed as off-subnet. The requests are ARP probes (RFC 5227), which name no sender address, so nothing on the other network is left with your machine in its ARP cache.

  • A range takes at most a /16, and addresses already on your network are left to the scan.
  • It needs raw access (sudo, or setcap on Linux), and stops without it rather than quietly scanning less.
  • It isn't available on Windows, which only sends ARP for addresses on its own network.

Upgrading from 0.12.0

  • s now sorts, and the list's headings show ▾ on the sorted column. The list starts in address order, as before.
  • A scan now pings each device it finds three times. It takes no longer: the pings go out alongside the other follow-up questions.
  • --json gains ping_ms, names_differ and type_disagrees; the last two only appear when there's something to say. Nothing was removed or renamed, and printed tables haven't changed.

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.12.0...v0.13.0

lsnet 0.12.0

Choose a tag to compare

@sanford sanford released this 09 Oct 02:58

Themes

The browser has always drawn in your terminal's own colors, and still does to start. Press t for the others: Omarchy's themes (Tokyo Night, Catppuccin, Gruvbox, Nord, Rosé Pine and more) and lshn's hn, amber and green, each with a strip of its colors. Moving through the list shows each one on the whole screen; Enter keeps it and Esc goes back.

  • The theme you keep is saved in ~/.lsnet/config.toml, and --theme NAME picks one for a single run.
  • Themes of your own go in ~/.lsnet/themes/, as NAME.toml or NAME/colors.toml in Omarchy's colors.toml format.
  • On Omarchy, lsnet follows the desktop's theme instead, as it changes.

The mouse

Click a tab to switch to it, a row to select it, or a line of the details to go into them with that line selected. Click what's already selected to copy it: a row's IP address (or a service's address and port), or a line's value. The wheel moves through the list or the details, and every hint in the footer clicks as its key, so w open opens the web page.

--no-mouse, or mouse = false in the config file, leaves the mouse to the terminal. Most terminals still select text while you hold Shift (Option in iTerm2).

Which pane has the keyboard

The pane with the keyboard is outlined in the theme's accent (cyan in the terminal's own colors), and the other one dimmed, whichever side it's on. Only the details used to change.

Upgrading from 0.11.0

  • The mouse is on: clicks and the wheel go to lsnet. To select text with the terminal, hold Shift (Option in iTerm2), or run with --no-mouse.
  • t picks a theme, and lsnet now reads ~/.lsnet/config.toml if there is one. Printed tables and --json haven't changed.

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.11.0...v0.12.0

lsnet 0.11.0

Choose a tag to compare

@sanford sanford released this 09 Oct 02:31

w opens its web page

Most things on a home network have a web page: the router, the printer, the NAS, Home Assistant, Plex, Proxmox. Select one in the browser and press w, and it opens in your browser, at the right scheme and port. w open is in the footer whenever there's something to open.

  • In the services view, w opens the service on the selected row: https:// for HTTPS (443, 5001, 8443, 9443), Proxmox and WebDAVS, http:// for HTTP, HTTP alt (8000, 8080 and the like), Home Assistant, Plex, Jellyfin, ESPHome, OctoPrint, Umbrel, Prometheus and WebDAV. Plex opens at /web, its web app.
  • In the devices view, w opens the device's web UI. A Synology, UGREEN or QNAP NAS opens its admin page (DSM on 5001 or 5000, UGOS on 9443 or 9999, QTS on 443 or 8080) rather than whatever's on port 80. On a Synology that's Web Station, which until it's set up only says so, so it comes last. A NAS is known by its maker, or by the name it came with (DiskStation, UGNAS), for when its MAC vendor is hidden.

Only pages a browser shows are opened: SSH, file shares and VNC have no w.

Two more ports

Live devices are also checked on 5000 and 9999, where Synology's and UGREEN's admin pages answer over HTTP. Those ports mean other things elsewhere (a Mac's AirPlay receiver, a router's UPnP, a Kasa plug), so they're listed as services only on those NAS.

A footer that fits

The footer no longer runs off the edge at 80 columns. c is now copy all, esc clear filter takes the place of / filter while you're filtering, and when the hints still don't fit, the most obvious go first. ? help always stays, and lists every key.

Upgrading from 0.10.0

  • --json and -v may list ports 5000 and 9999 in open_ports, and -s lists them on Synology and UGREEN NAS. 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.10.0...v0.11.0

lsnet 0.10.0

Choose a tag to compare

@sanford sanford released this 09 Oct 01:58

Tabs for devices and services

The browser's header is now two lines. The first is lsnet and its tabs, 1 Devices and 2 Services: press 1 or 2 to switch. The second sums up the scan in one line: what was scanned, what it's still waiting for, how many addresses are wrong (a conflict, self-assigned or off-subnet; the device's details say why), and anything it couldn't see, like the tip to run with sudo.

What changed since last time is no longer spelled out in the header. The list's marks (+ new, → moved, ~ renamed, - missing) still show it, and printed tables still end with the summary line.

Copy any line of the details

Tab now goes into the details pane (→ and l do too). ↑ and ↓ move through its lines one at a time, and Enter or c copies the one you're on: the MAC address, the hostname, a Bonjour service's name, or just the value of a TXT record (AppleTV14,1 from model = AppleTV14,1). Tab, ←, h or Esc goes back to the list. In the list, c still copies all the details, and Enter or y the IP address.

Narrow terminals

Below 80 columns (was 100), the details no longer squeeze in under the list. The list has the screen, and Tab shows the selected device's details in its place.

Services

In the services view, the port is in bold, so it stands out down a list of one device's services.

Upgrading from 0.9.0

Was Now
Tab switched between devices and services goes into the details and back; 1 and 2 switch
h showed the help goes back from the details to the list; ? shows the help
Below 100 columns details under the list below 80, the list or the details

Printed tables and --json haven't changed.

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.9.0...v0.10.0

lsnet 0.9.0

Choose a tag to compare

@sanford sanford released this 06 Oct 08:35

What changed since last time

lsnet now remembers each network it scans, so the next scan can say what's different. The list marks devices that are new (+), that moved to another address (→), that were renamed (~), and that were here last time but didn't answer (-, dimmed at the bottom). A line under the results sums it up: since the last scan, 2 hours ago: 1 new, 1 moved. Printed tables get a CHANGE column.

Most home networks use the same addresses, so a network is recognized by its router: the identifier it announces over UPnP (no sudo needed), its MAC, or its .local name. Devices are recognized by MAC, then .local name, then address. Before calling a device missing, lsnet gives its last address a second chance, which wakes most Wi-Fi devices that dozed through the first round, and a device that answers but says nothing about itself keeps the name and type it had.

The history is a JSON file in your user data folder, readable only by you, and nothing leaves your machine. --no-history skips it, and lsnet --forget shows what's in it and deletes it once you agree. The README's "History and privacy" section says exactly what's kept and where.

Results as they arrive, and listening afterwards

The browser now shows devices about a second into the scan and fills in their details as answers come back, with what it's still waiting for in the header (including how far the port probe has got on a large network). Once the scan is done, it keeps listening to Bonjour announcements, and with sudo to ARP, so a phone that wakes up later is added to the list and asked the same questions as everything else. r rescans without clearing the screen.

Devices on the wrong address

lsnet now points out devices whose address doesn't fit, usually the hardest ones to find:

  • link-local: a 169.254.x.x address the device gave itself because no DHCP server answered
  • off-subnet: on your network segment, but using an address from another network, usually a static one left over from somewhere else
  • address conflict: two devices answering for the same address

Their IP is shown in yellow (red for a conflict), with a line under the results and an explanation in the details, and /conflict, /link-local and /off-subnet filter for them. These come from listening to ARP, so they need sudo (or setcap) on macOS and Linux. Without it, link-local devices that answer Bonjour are still found. Windows reports only one MAC per address, so it gets only the Bonjour ones.

Why it thinks so

Every device's details now say what decided its type and where its name came from, like Type from Bonjour airplay model = AppleTV14,1 and Name from AirPlay. If lsnet gets a device wrong, that line points at the rule to fix.

Dante and NDI

Audio and video over IP gear is now recognized: Dante devices (by their Bonjour services, including in safe mode, or an Audinate network interface) as Audio device · Dante, named as they are in Dante Controller, and NDI sources as Video device · NDI. A Mac or PC that's only running Dante or NDI software still shows as a computer.

Try it without a network

lsnet --demo shows a made-up network, with a history and some address problems, without sending a packet. The README's screenshots are taken from it.

Fixes

  • A machine on Wi-Fi and Ethernet at once is now identified at both of its addresses, not just one.
  • Names: when a device's preferred name is machine-generated junk, the next-best name is used instead of none.
  • The MAC vendor database is up to date.

Upgrading from 0.8.0

  • The first scan of each network writes a history file. --no-history turns that off; nothing else changes without it.
  • Once a network has a history, printed tables get a CHANGE column and the browser's list a column of marks, and missing devices are listed under printed output. --json output never includes missing devices.
  • --json has new fields: type_from and name_from on each device, and when they apply, flags, other_macs and other_ips (address problems), first_seen and changes (history), and udn under ssdp. Nothing was removed or renamed.
  • New options: --demo, --no-history and --forget. Set LSNET_HISTORY to keep the history somewhere else.

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.8.0...v0.9.0

lsnet 0.8.0

Choose a tag to compare

@sanford sanford released this 05 Oct 05:00

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