r/coolgithubprojects • u/misal133 • 4h ago
Adapter Priority (For those with multiple intenet connections on 1 PC)
Windows sends new internet connections through… shows the adapter Windows really uses for IPv4 and for IPv6. It asks Windows directly: a socket is pointed at a public address (nothing is sent) and Windows' choice of source address names the adapter.
Each adapter card shows each protocol's metric and Cost: the default route's metric plus the interface metric, which is the number Windows compares. The lowest cost of each family wins.
Make primary (header) makes the adapter primary for both IPv4 and IPv6; Primary on a protocol line does just that protocol. That adapter gets metric 5, and the others get 25, 35, … in their current order. Where a router hands out a lower route metric (an IPv6 router at "high" preference gives 16, one at the usual "medium" gives 256), the others get raised further so that the chosen adapter's cost really is the lowest.
− / + change a metric by 1 (Shift-click: 10). Auto gives the metric back to Windows, which picks one from the link speed.
IPv4 / IPv6 turn the protocol on or off for that adapter, the same as ticking it in the adapter's Properties. The On switch enables or disables the whole adapter.
Prefer IPv4 over IPv6 is Windows' own setting for this (DisabledComponents bit 0x20 under Tcpip6\Parameters). It takes effect after a restart.
Automatic for all gives every metric back to Windows. Restore original brings back the settings recorded the first time the app ran.
Each card names its adapter and the speed it's connected at, e.g. eth0 · Marvell AQtion AQC113 · 10 Gbps. Ethernet adapters are eth0, eth1, eth2… in the order Windows created them (the order of its own "Ethernet", "Ethernet 2" defaults), so renaming a connection doesn't change them. Long device names are shortened and the chipset is named from the PCI ID database; when both say the same maker, only the chipset is shown. Chipsets carry their speed or Wi‑Fi generation, e.g. Intel I226-V (2.5G), Realtek RTL8852CE (Wi-Fi 6E). Realtek USB Ethernet (RTL8153/8156/8157/8159) and common USB Wi‑Fi sticks are named by their USB IDs, and Intel Wi‑Fi built into the processor (CNVi) by the module the driver names, e.g. Intel BE211 (CNVio3, Wi-Fi 7). A Wi‑Fi card's speed is read every 5 seconds, as it changes with the signal. Nothing is read while the window is minimized.
Each card shows the internet provider behind the adapter, its public IPv4 and IPv6 addresses and its logo, looked up through that adapter itself, so an adapter that a router sends out another line shows that line. The provider and addresses come from ip.sb (with ipinfo.io and ipify as fallbacks). The logo is the provider's website icon: the website comes from PeeringDB or, for networks not listed there, the email domain in the internet registries' public RDAP records, and the icon from Google's site-icon service. A logo that would vanish into the card's background is shown on a small contrasting tile.
The top-right buttons blur the public IPs (for screenshots) and switch between dark and light.