GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - andrewtryder/docknet: Lightweight native macOS menu-bar network observer prioritizing Ethernet over Wi-Fi

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
.githooks
.githooks
 
 
.github/workflows
.github/workflows
 
 
DockNet.xcodeproj
DockNet.xcodeproj
 
 
DockNet
DockNet
 
 
DockNetTests
DockNetTests
 
 
DockNetUITests
DockNetUITests
 
 
assets
assets
 
 
docs
docs
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
.release-please-manifest.json
.release-please-manifest.json
 
 
.swiftformat
.swiftformat
 
 
.swiftlint.yml
.swiftlint.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
project.yml
project.yml
 
 
release-please-config.json
release-please-config.json
 
 
version.txt
version.txt
 
 

Repository files navigation

DockNet

DockNet icon

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.

What it does

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.

DockNet live menu bar interface

Example

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.

VPNs and Tailscale

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.

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.

Philosophy

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.

Installation

Downloading a release

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:

  1. Attempt to open DockNet.app.
  2. Open System Settings -> Privacy & Security.
  3. Scroll down to find the message stating DockNet was blocked.
  4. Click Open Anyway.
  5. Confirm Open when prompted.

Users who prefer not to bypass Gatekeeper can clone the repository and build DockNet locally from source.

Building from source

DockNet is a native Swift macOS application. You will need:

  • macOS
  • Xcode
  • Apple's xcodebuild command-line tools

Clone the repository:

git clone https://github.com/andrewtryder/docknet.git
cd docknet

Build:

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.

Signing

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.

About

DockNet was created by Andrew Ryder.

View DockNet on GitHub

Ethernet when it's there. Wi-Fi when it isn't.

About

Lightweight native macOS menu-bar network observer prioritizing Ethernet over Wi-Fi

github.com/andrewtryder/docknet

Topics

appledockingmacosmacosxnetworkingswitcher

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.