“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 agentCopies 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.

  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.

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.

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

Checked on 29 October 2026.