A tiny macOS menu bar utility for seamless Ethernet and Wi-Fi failover.
If you're like me and dock at a place where there is hardwired Ethernet, but then are on Wi-Fi when moving around an office or space, macOS automatically routes traffic over Ethernet when available and switches back to Wi-Fi when disconnected. DockNet makes this seamless failover visible by quietly observing your physical network connections and reporting when changes happen.
DockNet keeps an eye on your Mac's physical network connection and makes it easy to see what's actually being used.
Plug into Ethernet and macOS can prefer the wired connection. Unplug it and Wi-Fi is already connected and ready to take over. DockNet simply watches that process and tells you what happened.
DockNet lives quietly in the macOS menu bar and shows your current physical network connection. It supports multiple Ethernet adapters, including USB, Thunderbolt docks, and Ethernet built into monitors. DockNet offers Compact and Detailed menu-bar views.
When Ethernet is connected and healthy, DockNet reports it as the primary connection. If Ethernet disappears or cannot obtain a usable network configuration, Wi-Fi remains available as the fallback.
Optional macOS notifications can let you know when the physical connection changes.
Docked
Ethernet · en6
192.168.88.160
Ready · Primary
Undocked
Wi-Fi · en0
192.168.88.148
Connected · Primary
Wi-Fi stays associated while Ethernet is in use, allowing macOS to fail over quickly when a cable or dock is disconnected.
DockNet intentionally ignores VPN and tunnel interfaces. Tailscale, VPN clients, exit nodes, and utun interfaces are overlays on top of your physical connection. DockNet continues to report the underlying Ethernet or Wi-Fi connection and leaves VPN software completely alone.
VPN connection changes do not generate DockNet notifications.
Connection notifications are optional. When enabled, DockNet can show a macOS banner when the physical connection changes, for example:
Switched to Ethernet
USB 10/100/1G/2.5G LAN · en6
or:
Switched to Wi-Fi
Using en0 · 192.168.88.148
DockNet does not notify simply because a VPN connects or disconnects.
DockNet does not try to replace macOS networking. It does not disable Wi-Fi, rewrite routes, manage your VPN, or run a privileged network daemon.
macOS handles the actual routing and failover. DockNet observes the result and makes it visible.
Download the latest pre-built Apple Silicon DMG (DockNet-<version>-macOS-arm64.dmg) and its SHA-256 checksum from GitHub Releases.
Release builds are:
- Apple Silicon (arm64)
- ad-hoc signed
- not Developer ID signed
- not notarized by Apple
Because DockNet is an independent, non-notarized open-source project, macOS Gatekeeper may display a security prompt when opening the application for the first time.
To launch DockNet using standard macOS controls:
- Attempt to open
DockNet.app. - Open System Settings -> Privacy & Security.
- Scroll down to find the message stating DockNet was blocked.
- Click Open Anyway.
- Confirm Open when prompted.
Users who prefer not to bypass Gatekeeper can clone the repository and build DockNet locally from source.
DockNet is a native Swift macOS application. You will need:
- macOS
- Xcode
- Apple's
xcodebuildcommand-line tools
Clone the repository:
git clone https://github.com/andrewtryder/docknet.git
cd docknetBuild:
make build
Run the tests:
make test-all
Install the local build:
make install
Launch it:
make run
DockNet installs to:
~/Applications/DockNet.app
The Xcode project is checked into the repository, so XcodeGen is not required for normal builds.
Install the pinned SwiftLint 0.65.1 and SwiftFormat 0.64.7 tools from their official, SHA-256 verified releases, then enable the repository pre-commit hook:
make tools make install-hooks
The hook checks staged Swift files with both tools. It requires fully staged Swift files; run make format before committing. Use make format-check and make lint to run the CI checks locally. XcodeGen and xcbeautify are optional development tools.
Release Please opens release pull requests from conventional commits. It selects future versions automatically from those commits. GitHub Actions must be allowed to create pull requests in the repository settings.
DockNet is currently an independent, ad-hoc signed, not Developer ID signed, and not notarized project.
Local builds use ad-hoc signing and do not require an Apple Developer Program membership or Developer ID certificate.
Because published builds are not notarized by Apple, macOS may display a security warning when opening a downloaded build. If you prefer, clone the source and build DockNet locally using the instructions above.
DockNet was created by Andrew Ryder.
Ethernet when it's there. Wi-Fi when it isn't.
