Prioritize LAN cable to access network (shared) drives over Wi-Fi

Abstract: Fixes slow network drive access by ensuring Windows and macOS route traffic through the wired LAN connection instead of Wi-Fi.

Created: 2026-09-13 by

To prioritize a LAN cable over Wi-Fi for accessing network drives, you must adjust the interface metric in your operating system’s network settings. A lower metric value forces the computer to route traffic through the wired connection first. This ensures faster, more stable file transfers and reduces latency when communicating with shared drives on your local area network.

Understanding Network Metrics

When a computer is connected to both a wired Ethernet adapter and a wireless Wi-Fi adapter, it has multiple paths to reach any given destination. The operating system uses a concept called the metric to decide which path to use. Think of the metric as a cost or priority score assigned to each network interface. The interface with the lowest metric value is considered the most efficient route, so the system sends data packets through that connection by default. By default, most modern operating systems automatically assign metrics based on the speed and reliability of the connection. Typically, a wired Gigabit Ethernet connection receives a much lower (better) metric than a Wi-Fi connection because it offers higher bandwidth and lower latency. However, this automatic assignment can sometimes be overridden by other factors, such as driver updates, power-saving settings, or manual configuration errors. If your computer is sending traffic to a network drive via Wi-Fi while an Ethernet cable is plugged in, it usually means the Wi-Fi interface has a lower metric value than the Ethernet interface. To fix this, you need to manually inspect these values and ensure the Ethernet adapter has the lowest number. This process does not disable Wi-Fi; it simply tells the network stack to prefer the wired link for all local traffic, including access to shared folders on NAS devices or other PCs on the same subnet.

Adjusting Settings on Windows

Windows provides a straightforward graphical interface to modify these metrics. Start by opening the Control Panel and navigating to Network and Internet, then select Network and Sharing Center. From there, click on Change adapter settings in the left-hand pane to see all your active network connections. You will see icons for your Wi-Fi adapter and your Local Area Connection (Ethernet). Right-click on the Ethernet adapter and select Properties. In the list of items, find and double-click on Internet Protocol Version 4 (TCP/IPv4). Click the Advanced button at the bottom of the window. Here, you will see a field labeled Automatic metric. Uncheck this box to enable manual entry. Enter a low number, such as 10, into the Interface metric field. Click OK to save the changes, then close all windows. Next, repeat this process for your Wi-Fi adapter. Open its properties, go to TCP/IPv4 advanced settings, uncheck Automatic metric, and enter a higher number, such as 50 or 100. By setting the Ethernet metric lower than the Wi-Fi metric, you guarantee that any request to access a network drive will travel through the cable first.

Adjusting Settings on macOS

On macOS, the process involves adjusting the service order rather than individual metrics. Open System Preferences and click on Network. You will see a list of services on the left side, such as Wi-Fi and Ethernet. Click the gear icon at the bottom of the list and select Set Service Order. Drag the Ethernet service above the Wi-Fi service in the list. Click OK and then click Apply in the main window. macOS uses this order to determine which interface to use for routing traffic.

Verifying the Configuration

After making these changes, verify that the system is using the correct interface. On Windows, open Command Prompt and type route print. Look for the routes associated with your local subnet. The entry with the lowest metric should correspond to your Ethernet adapter. You can also ping a known device on the network and check the source IP address to confirm it matches the IP assigned to your wired connection. If you continue to experience issues, ensure that both adapters are connected to the same router or switch. Mixing networks, such as connecting Ethernet to one router and Wi-Fi to another, can cause routing conflicts. Additionally, some routers have features like "band steering" or "preferred band" that might interfere if not configured correctly, though these typically affect client connections rather than internal routing decisions on the PC itself. For users experiencing intermittent connectivity during these adjustments, it may be helpful to review logs for packet drops. See how to log intermittent loss of internet for diagnostic steps that can reveal underlying hardware faults.

Frequently Asked Questions

Will changing the metric disconnect my Wi-Fi?

No, changing the metric does not disable the Wi-Fi adapter. It only changes the priority of the routes used by the operating system. Your Wi-Fi connection remains active and available for use if the Ethernet cable is unplugged or fails.

How do I know if the change worked?

You can verify the change by pinging a local IP address and checking the source IP in the response. Alternatively, use a tool like netstat -r on Windows or route get on macOS to see which interface is selected for the destination.

Can I set the metric to zero?

While technically possible on some systems, setting a metric to zero is generally not recommended. Most operating systems require a positive integer. A value between 1 and 20 is sufficient for the primary interface, while secondary interfaces should have significantly higher values.

What if I am on a different subnet?

If your network drive is on a completely different subnet or VLAN, the metric adjustment still applies to the default gateway selection. Ensure that your default gateway points to the correct router for both interfaces to avoid asymmetric routing issues. For more on gateway configurations, refer to troubleshooting default gateway errors.

Does this affect internet speed?

Yes, prioritizing Ethernet for all traffic, including internet access, will generally improve your browsing and download speeds if your wired connection is faster than your Wi-Fi. However, if your Ethernet connection shares bandwidth with many other devices, the benefit might be less pronounced compared to a dedicated high-speed Wi-Fi standard.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More