Skip to content

Make Windows prefer one network adapter over another — via Microsoft Learn

Commandmedium riskNeeds adminWindows 11Windows 10

With Ethernet, Wi-Fi and VPN adapters all connected, Windows picks a route by interface metric. Setting a lower metric on the adapter you want makes traffic prefer it.

Takes effect right away

Command

Run in an administrator PowerShell / Terminal window.

Get-NetIPInterface | Sort-Object InterfaceMetric
Set-NetIPInterface -InterfaceAlias "Ethernet" -InterfaceMetric 15

Undo

Set-NetIPInterface -InterfaceAlias "Ethernet" -AutomaticMetric Enabled
Lower number = preferred. Windows already prefers wired over wireless with automatic metrics, so only change this when it's choosing wrong (often with VPNs or USB adapters). Since Windows 10 the metric replaced the old adapter binding order. The GUI equivalent is the adapter's IPv4 properties → Advanced → untick Automatic metric.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

interface metricethernet vs wi-fivpnroutingadapter order

More in Networking

Flush the DNS cache — via Marc Abramowitz

Commandlow riskAdmin

If a website moved to a new server, or you changed DNS settings and some sites still won't load, your Mac may be holding on to old address lookups. Flushing the DNS cache makes it look them up fresh. It's a troubleshooting step, not a speed boost.

Run Apple's built-in internet speed test — via SS64

Commandlow risk

macOS has its own speed test in Terminal. Besides download and upload speed, it measures 'responsiveness' (round trips per minute while the line is busy), which explains why video calls stutter on a connection that looks fast.