Skip to content

How Can You Troubleshoot VPN Routing with macOS Network Locations?

Network Locations let you keep separate network settings on one Mac. Here is how to use them as a clean test bench when VPN traffic takes the wrong path.

11 min readUpdated Nov 10, 2026By XPASS Editorial Team

How Can You Troubleshoot VPN Routing with macOS Network Locations?

Sometimes a Mac with a VPN behaves in a way that is hard to pin on any single cause. A website opens on one network and not another, a work address resolves to the wrong place, or traffic you expected to be inside the tunnel clearly is not. After a while you have changed so many settings that you no longer know which one matters. macOS has a quiet feature built for exactly this situation: Network Locations.

A Network Location is a saved set of network settings. You can keep several on one Mac, switch between them in seconds, and delete the ones you no longer need. This article shows how to use a spare location as a clean test bench for VPN routing problems, what to compare, and where the method stops being useful. It stays general on purpose, because the outcome depends on your network and on which VPN software you run.

What a Network Location actually stores

Open System Settings, go to Network, and look at the menu with the three dots (the label differs a little between macOS versions, so look for an entry such as "Locations" or "Edit Locations"). The name of the current location is shown there. Most Macs have a single location called Automatic, and many people never notice it.

A location holds the list of network services (Wi-Fi, Ethernet, USB adapters, and similar), the order in which the system prefers them, and the settings attached to each one. Those settings include:

  • the IP configuration method (automatic from the router, or a manual address);
  • the DNS servers and search domains, if you set them by hand;
  • proxy settings, including automatic proxy configuration files;
  • the hardware details such as MTU for a service, if you changed them.

Switching location swaps this whole bundle at once. That is the useful part. You do not have to remember what you changed. You create a second location, leave it almost empty, and the difference between the two tells you something.

What a location does not store is also worth knowing. It does not store the contents of your apps, your saved Wi-Fi passwords in a way you need to manage, or the logic inside a VPN app. A VPN app that adds its own virtual interface and routes may behave the same under any location, or may react to the change in a way you need to observe. Do not assume either.

Why a clean location helps VPN routing tests

When VPN traffic goes the wrong way, the usual suspects are local and boring:

  1. A hand-typed DNS server that ignores what the VPN wants to use.
  2. A proxy setting left over from an old job or a school network.
  3. A service order that prefers an adapter you forgot was plugged in.
  4. A manual IP or router address that no longer matches the network you are on.

Each of these lives in the Network Location. If you test the VPN in a freshly created location, none of them is present. The Mac asks the router for everything, uses the default order, and has no proxy. That makes the clean location a baseline: the simplest configuration your Mac can have.

A baseline gives you a clear fork in the road. If the VPN works properly there, the problem is one of the stored settings in your everyday location, and you can find which one by comparison. If the VPN misbehaves there too, you can stop blaming local settings and look further out: the Wi-Fi network, the router, the VPN software, or the account.

For a wider view of how the system picks between several connections, how network interface priority affects an active tunnel explains the logic that a service order feeds into.

Step by step: build and use a test location

Take these steps on the Mac that shows the problem. Nothing here deletes your existing setup.

1. Record what you have now

Before creating anything, write down the current location name and the settings you remember changing. Open the Network pane, select each active service, and read the DNS and proxy entries. If you use Terminal, these two commands print a quick picture:

scutil --dns | head -40
networksetup -listnetworkserviceorder

Save the output in a note. You are not fixing anything yet. You are making sure you can go back.

2. Create the new location

In the Network pane, open the three-dot menu, choose the option to edit locations, click the add button, and give the new location a plain name such as "VPN test". Apply the change. The Mac now uses the new location, with default services and automatic configuration.

3. Join the same network

Connect to the same Wi-Fi network, or plug in the same Ethernet cable, that showed the problem. Do not change the network and the location at the same time. Change one variable per test, or you will not be able to explain the result.

4. Check the basics without the VPN

With the VPN off, open a few ordinary sites and run ping to a public address. Confirm the clean location has working internet. If it does not, fix that first, because VPN testing on a broken connection tells you nothing.

5. Connect the VPN and repeat the failing action

Now connect the VPN the way you normally do, wait until it reports connected, and repeat exactly what failed before. Note the result in one line: works, fails, or partly works.

6. Compare, then change one thing at a time

Switch back to your everyday location and repeat step 5. If the clean location works and the everyday one does not, move settings across one at a time. Add the custom DNS servers first, test, then the proxy, test, then the service order, test. The step at which the failure returns is your cause.

What to compare between two locations

A short checklist turns this into a method rather than guessing. Check each item in both locations while the VPN is connected.

Check How to look What a difference suggests
DNS servers in use scutil --dns and read the resolver list A hand-set DNS server overrides what the VPN intended
Service order networksetup -listnetworkserviceorder A different connection is preferred over the one you expect
Proxy Network pane, service details, Proxies Traffic is sent to a proxy before it ever reaches the tunnel
Route for a test address route -n get 1.1.1.1 and read the interface line An interface starting with utun suggests the tunnel; en0 or en1 suggests the normal connection
Public IP seen by a website Open a public IP-checking page in a browser Whether web traffic leaves through the VPN or not
Name lookup dscacheutil -q host -a name example.com Whether names resolve and to what address

Not every row applies to every VPN app. The route and interface reading, for example, depends on how the software builds its connection. Treat the interface name as a clue and not as proof, and use more than one check before you draw a conclusion. If you want a method for proving that name lookups really follow the VPN, how to check that DNS queries follow the VPN route goes through it in detail.

A plain example

Imagine a Mac that works fine at home but cannot open an internal web page when connected to a hotel network. The user has tried reinstalling the VPN twice with no change.

They create a location called "VPN test", join the hotel Wi-Fi, connect the VPN, and the page opens. Back in the everyday location, the page fails again. So the cause is stored in the everyday location.

Moving settings across one by one, the page still opens after the service order and the proxy are copied. After the custom DNS entry is added, it fails. Years ago the user typed a public DNS server into the Wi-Fi service to fix a slow router. That server cannot know about the internal name, so the lookup never reaches the resolver the VPN expects.

The fix is to remove the manual DNS entry from the everyday location, or to keep two locations and switch to the clean one when working remotely. No reinstall was needed, and the cause is now written down. A leak in this area is a related issue; DNS leaks on a Mac covers how to tell when lookups go around the tunnel.

Using this with the XPASS Mac app

The VPNclient Mac app provided with an XPASS pass is an Intel-only installer, and Macs with Apple silicon may ask to install Rosetta the first time. The important point for this article is that the app does not use macOS VPN configurations, so you will not see its connection in the system VPN list in System Settings.

We do not document how its virtual network behaviour interacts with Network Locations, and you should not assume it matches a built-in VPN. The honest approach is to test. Use the same six steps: build the clean location, connect with the app, repeat the failing action, then compare with your everyday location. If results differ between locations, the differences point at stored settings (DNS, proxy, service order) rather than at anything special about the app.

Two practical habits help:

  • Switch location first, wait a few seconds for the network to settle, and only then connect the VPN. Changing location under a live connection can drop it or leave it in an odd state.
  • Disconnect before you switch back, then reconnect. A tunnel that was set up under one location may not match the other.

If the app will not connect at all in any location, the cause is usually not routing. Start with the basics in VPN not connecting, such as checking your My Pass login details and that your pass is still valid.

Locations versus split tunneling and other fixes

Network Locations are one tool among several, and it helps to know what they do not do.

  • They do not create split tunneling. A location can change DNS and service order, but it cannot say "send this app outside the VPN". For that you need an option in the VPN software itself, and split tunneling on macOS explains the realistic options.
  • They do not change what a website sees. If a site blocks or limits you because of the IP address the VPN uses, no local location setting alters that.
  • They do not repair a faulty VPN account. A wrong username or password fails in every location.
  • They do not replace restarting. Sometimes a stale DNS cache or a stuck adapter clears with a reboot, and a location switch is no substitute.

A simple rule of thumb: Network Locations answer one question well, which is "is this problem caused by my stored local settings". They are poor at answering any other question.

Limits and things to watch for

  • Switching drops connections. Expect downloads, calls and the VPN itself to restart. Do not switch in the middle of something you cannot repeat.
  • Locations are not a security feature. A clean location is a test aid, not a safer setup. It does not make traffic private, and it does not stop an app from leaving the tunnel.
  • Do not trust one reading. An interface name, an IP address or a lookup result is a clue. Confirm with a second method before changing settings permanently.
  • Managed Macs may behave differently. If a company or school manages your Mac, a profile can enforce DNS, proxies or VPN rules that override your locations. Ask your IT team before testing, and do not try to bypass controls that your organisation set on purpose.
  • Your private addresses matter. Local network ranges such as 192.168.x.x or 10.x.x.x (see RFC 1918) can overlap between your home network and a remote one, which causes confusing routing even in a clean location. If the same range appears on both sides, changing the router's range is often the real fix.
  • A VPN does not guarantee access or security. Even when routing is correct, a VPN does not unlock every site or make you anonymous, and some services may still limit connections from VPN addresses.

Cleaning up afterwards

When you finish, switch back to your everyday location and disconnect the VPN once. Decide whether to keep the test location. Many people do: it is a handy second profile for a hotel, a coworking space or a client network, and costs nothing to store. If you delete it, open the three-dot menu, edit locations, select it and use the remove button. Deleting a location never removes your other locations.

If your testing led you to change the everyday location, write down what you changed and why, and consider keeping a short note. Settings you cannot explain tend to cause the next mystery.

Summary

Network Locations let you separate "something stored on my Mac is wrong" from "something outside my Mac is wrong". Build a clean test location, repeat the failing action with the VPN connected, and then move settings across one at a time until the failure returns. Compare DNS servers, service order, proxies and routes, treat every reading as a clue, and remember that the XPASS Mac app does not use macOS VPN configurations, so test it rather than assuming how it reacts. If you want to try this with your own pass, you can see the options on the pricing page.

Frequently asked questions

What is a Network Location on a Mac?

A Network Location is a saved set of network settings: which connections exist, their order, DNS servers, proxies and similar options. You can keep several and switch between them, so a clean test setup never disturbs your everyday one.

Will a new location fix my VPN routing problem by itself?

Not by itself. It gives you a clean baseline. If the problem disappears there, something in your usual location (a custom DNS entry, a proxy, a service order change) is the cause. If it stays, the cause is outside those settings.

Does switching location disconnect my VPN?

It can change the active network settings underneath a running connection, so expect the VPN to drop or need a reconnect. Switch first, wait for the network to settle, then connect and test.

Does the XPASS Mac app depend on macOS VPN configurations?

The VPNclient Mac app is an Intel-only installer that does not use macOS VPN configurations, so you will not find its connection in the system VPN list. How it behaves next to Network Locations is not documented here, so test it with the steps in this article rather than assuming.

Is it safe to experiment with Network Locations?

Yes, if you keep the original location untouched and only edit the test copy. Write down changes as you make them, and switch back to the original when you are finished.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

Device Guides

Split Tunneling on macOS: Options and Limits

A practical look at mac vpn split tunneling: what macOS itself offers, how app-based and route-based splitting differ, how to prove it works, and where it breaks.

10 min read

VPN Basics

How Do Network Interface Priorities Affect an Active VPN Tunnel?

When a computer has several network connections, the system ranks them. That ranking decides which path carries the VPN tunnel and which traffic goes inside it.

11 min read

Device Guides

How to Check for DNS Leaks on macOS

A Mac-focused routine for finding a DNS leak while a VPN is on: what to compare, which Terminal commands help, how to read the results and what usually causes leaks on macOS.

10 min read