Use USB or Ethernet for the internet while you stay on Wi-Fi on a Mac

A Mac can stay on a Wi-Fi network and send internet traffic through another connection at the same time. The service order decides which connection carries the internet.

Fix this with your agentCopies a prompt for Claude Code, Codex or any agent that can use Terminal.

My Mac has this problem: Use USB or Ethernet for the internet while you stay on Wi-Fi on a Mac. Read https://kilobat.app/guides/use-wifi-and-usb-internet-mac.md and work through it with me. Install the Kilobat CLI if it’s missing: brew install seifip/kilobat/kilobat. Run the guide’s Terminal and kilobat checks yourself and tell me what you find. List the steps only I can do. Ask before you change any setting.

Applies to: macOS 13 Ventura and later for the System Settings steps, including macOS 14 Sonoma, 15 Sequoia and 26 Tahoe. The Terminal commands work on all current macOS versions.Checked: 21 November 2026

Symptoms

  • You join a device's or a venue's Wi-Fi, and the internet stops even with an iPhone on a cable.
  • The Mac uses the Wi-Fi when you want it to use iPhone USB or Ethernet.
  • You want the Wi-Fi for a printer, camera or robot, and the cable for everything else.

Likely causes

  • Wi-Fi is first in the service order. The Mac tries the service at the top of the list first. Internet traffic follows that service.
  • The Wi-Fi has no way out. A device's own network gives the Mac a router that cannot reach the internet. A firewalled network can block what you need.
  • The other connection is not active. iPhone USB needs Personal Hotspot and Trust on the iPhone. Ethernet needs a link and an address.

How to check

  1. Show the service order. An asterisk marks an inactive service.

    networksetup -listnetworkserviceorder
  2. Show which interface carries internet traffic now.

    route -n get default

    Output The interface line names it, for example en0 for Wi-Fi.

  3. Match each interface name to its service.

    networksetup -listallhardwareports
  4. Show the router address that the Wi-Fi network gave the Mac.

    ipconfig getoption en0 router

How to fix it

  1. Connect the iPhone with a USB cable. Turn on Personal Hotspot on the iPhone.

  2. If the iPhone asks to trust the computer, tap Trust. If the Mac asks to allow the accessory, click Allow.

  3. Or connect an Ethernet cable to the Mac or to its adapter.

  4. Choose Apple menu > System Settings, then click Network.

  5. Click the Action pop-up menu, then choose Set Service Order.

  6. Drag iPhone USB or Ethernet above Wi-Fi. Click OK.

  7. Stay on the Wi-Fi network that you need for local devices.

  8. Check that internet traffic now uses the other interface.

    route -n get default
  9. Check that a local device still goes over Wi-Fi. Use its address, for example 192.168.4.1.

    route -n get 192.168.4.1

    Output The interface line shows the Wi-Fi interface. The device is on the Wi-Fi's own network, so the Mac reaches it directly.

  10. When you finish, open Set Service Order again. Drag Wi-Fi back to the top, then click OK.

  11. Or set the order in Terminal. Give every service name in the new order. Get the names with networksetup -listallnetworkservices.

    networksetup -ordernetworkservices "iPhone USB" "Wi-Fi" "Thunderbolt Bridge"

    Needs an administrator password.

With Kilobat

  1. Kilobat sees when the Wi-Fi has no internet and another connection has it. It offers to put that connection first.

  2. macOS asks for an administrator's approval. Kilobat puts your previous order back afterwards.

  3. Show where traffic leaves the Mac, with the interface, any VPN and the public address.

    kilobat ip
  4. Show the counters of each interface.

    kilobat interfaces
  5. For drones, cameras and robots with their own Wi-Fi, see Kilobat on a device's Wi-Fi.

Questions

Does the Mac use both connections at once?

Yes. Internet traffic uses the first working service. Traffic for a network that the Mac is on goes straight to that network's interface.

Which DNS server does the Mac use then?

Mostly the DNS server of the first service. Names that end in .local still use Bonjour on the local network.

Can I use the iPhone's Wi-Fi hotspot instead of the cable?

Not while the Mac is on another Wi-Fi network. The Mac joins one Wi-Fi network at a time. Use USB, or connect the iPhone over Bluetooth.

Can I put a VPN lower in the list?

No. VPN connections already take priority over other connections.

Sources

Checked on 21 November 2026.