---
title: "You have been disconnected from the VPN server because the network configuration changed on Mac · Kilobat Guides"
url: "https://kilobat.app/guides/vpn-disconnected-network-configuration-changed"
description: "The VPN drops because the network configuration changed. Find what changed and how to keep the VPN up."
---

# “You have been disconnected from the VPN server because the network configuration changed” on Mac

The Mac changed networks or addresses, so it ended the VPN. This is normal when Wi-Fi roams, sleeps or switches to Ethernet.

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

My Mac has this problem: “You have been disconnected from the VPN server because the network configuration changed” on Mac. Read https://kilobat.app/guides/vpn-disconnected-network-configuration-changed.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. The text was checked in PPPController on macOS 27.2. · Checked: 29 October 2026

## Symptoms

- System Settings › VPN shows “You have been disconnected from the VPN server because the network configuration changed.”
- The drop follows sleep, a move between rooms or a plug of a cable.
- The VPN comes back when you connect again.

## Likely causes

- **The Mac changed network.** Wi-Fi to Ethernet, or one access point to another, changes the address.
- **Sleep and wake.** The link can restart after wake.
- **A router or DHCP change.** A new lease can change the address or the DNS servers.

## How to check

1. Check the server address in System Settings › VPN. Look for typing errors and extra spaces.
2. Test that the server answers. Look up its name.

   ```
   dscacheutil -q host -a name vpn.example.com
   ```
3. List the VPN services and their state.

   ```
   scutil --nc list
   ```
4. Try another network, such as a phone hotspot. If it works, the first network blocks the VPN.

## How to fix it

1. Connect the VPN again. If you use Wi-Fi and Ethernet, use one of them.
2. Reduce roaming. See [Mac drops Wi-Fi or sticks to a far node on mesh Wi-Fi](https://kilobat.app/guides/mac-mesh-wifi-roaming).
3. Ask your provider whether the VPN can reconnect by itself.
4. Keep the Mac awake for long VPN jobs. See [caffeinate on Mac: keep awake from Terminal](https://kilobat.app/guides/caffeinate-keep-mac-awake).

## With Kilobat

1. Test the server name and the path to it before you try the VPN again.

   ```
   kilobat why vpn.example.com
   ```
2. The CLI is free. In the app, the advice from these checks is part of Kilobat Pro. See [Find why one site or API won't connect](https://kilobat.app/guides/recipes/why-cant-it-connect).

## Questions

**Is this a fault?**

No. The connection ended after an address change. Connect again.

**Can the VPN stay up across networks?**

That depends on the VPN. This message shows that this connection ended.

## Sources

- Error text in PPPController.bundle (SystemConfiguration), macOS 27.2 (Localizable.loctable)
- [Apple Support: Set up a VPN connection on Mac](https://support.apple.com/guide/mac-help/set-up-a-vpn-connection-on-mac-mchlp2963/mac)
- [Apple Support: Change options for L2TP over IPSec VPN connections on Mac](https://support.apple.com/guide/mac-help/change-options-for-l2tp-over-ipsec-vpn-connections-mh119412/mac)
- scutil(8), man page installed with macOS 27.2

Checked on 29 October 2026.

## Related guides

- [VPN disconnects when the Mac sleeps](https://kilobat.app/guides/vpn-disconnects-after-sleep): When the Mac sleeps, its network connection goes down, and most VPN tunnels go down with it.
- [Mac Wi-Fi disconnects after sleep](https://kilobat.app/guides/wifi-disconnects-after-sleep): After sleep, the Mac must join the Wi-Fi network again.
- [Mac drops Wi-Fi or sticks to a far node on mesh Wi-Fi](https://kilobat.app/guides/mac-mesh-wifi-roaming): A Mac decides itself when to move to another mesh node.
- [Mac uses the wrong network connection](https://kilobat.app/guides/network-service-order): When more than one connection is active, the Mac tries the service at the top of the list first.
