← Back to projects

Native macOS applications

DockNet

Know whether your Mac is using Ethernet or Wi-Fi.

Availability
Open-source download & repository
License
MIT

The problem

When docking and undocking a MacBook between wired Ethernet and Wi-Fi, macOS switches routes automatically — but the standard menu bar doesn’t make it obvious which physical interface is actually carrying traffic, especially when a VPN or Tailscale tunnel is active.

What I built

DockNet is a lightweight native Swift menu bar utility that observes physical network adapters (built-in Wi-Fi plus USB, Thunderbolt dock, and monitor Ethernet) and makes the active physical link easy to see.

Key capabilities

  • Shows Compact or Detailed menu bar status for your active Ethernet or Wi-Fi interface and IP address.
  • Ignores utun, VPN, and Tailscale overlay interfaces so notifications reflect real physical link changes.
  • Sends optional macOS notifications when your Mac transitions between Ethernet and Wi-Fi.

Technical architecture

Native Swift macOS app running unprivileged in user space. Pre-built Apple Silicon (arm64) DMGs are published on GitHub Releases alongside SHA-256 checksums, and the checked-in Xcode project builds locally from source.

Engineering decisions

DockNet intentionally observes macOS networking instead of controlling failover itself. It never disables Wi-Fi, rewrites routing tables, interferes with VPN tunnels, or installs a privileged network daemon — macOS handles failover while DockNet makes the result visible.

Availability & notes

MIT-licensed open-source software with a public GitHub repository. Pre-built Apple Silicon (arm64) DMGs are ad-hoc signed and not notarized, so first launch requires one-time approval in macOS Privacy & Security settings, or you can build locally with Xcode.