---
title: "MacBook won't connect to airplane Wi-Fi but iPhone does: fix it · Kilobat Guides"
url: "https://kilobat.app/zh-hans/guides/airline-wifi-mac"
description: "The Mac joins the plane's Wi-Fi, but nothing loads while your phone works. Clear the VPN, DNS and private address settings that hide the sign-in page."
---

# MacBook 上不了飞机 Wi-Fi，但手机可以

Plane Wi-Fi holds all traffic until you sign in on the airline's page. The phone often works because nothing on it hides that page.

Applies to: All current macOS versions. The Off, Fixed and Rotating options for the private Wi-Fi address are in macOS 15 Sequoia and later. · 核查日期：2026年10月29日

## 症状

- The Mac joins the plane's network, but no sign-in page opens.
- Safari shows a security warning or a blank page. The phone signed in with no problems.
- The Mac was online, then the airline's page asks you to sign in or pay again.
- The airline's page says that your pass is in use on another device.

## 可能的原因

- **A VPN or iCloud Private Relay.** A VPN or Private Relay can stop the plane network from sending you to its sign-in page.
- **Custom or encrypted DNS.** A custom DNS server or a DNS profile does not use the plane's DNS. The network then cannot redirect you to its sign-in page.
- **A new private Wi-Fi address.** The plane network can link a pass to the Wi-Fi address of a device. A new private address makes the Mac look like a new device.
- **The phone signed in another way.** The phone can have signed in through the airline's app, or before the Mac joined. It often has no VPN or DNS profile either.
- **The airline's own setup.** Airlines and their Wi-Fi providers use different sign-in pages and rules. Some show the page only after take-off. Some ask you to use their app.

## 如何检查

1. Hold the Option key and click the Wi-Fi icon. Make sure that you are on the airline's network.
2. 显示 Wi-Fi 服务的 DNS 服务器。自定服务器会显示在这里。

   ```
   networksetup -getdnsservers Wi-Fi
   ```

   Output `There aren't any DNS Servers set on Wi-Fi.` means that the Mac uses the plane's DNS.
3. 查看服务顺序的最上方是否有 VPN。

   ```
   networksetup -listnetworkserviceorder
   ```
4. 查找 DNS 描述文件。在 macOS 15 及更高版本中，选取苹果菜单 >“系统设置”>“通用”>“设备管理”。
5. 在 macOS 13 和 14 中，选取苹果菜单 >“系统设置”>“隐私与安全性”>“描述文件”。
6. Choose Apple menu > System Settings > Wi-Fi. Click Details next to the plane's network.
7. Read the values of Private Wi-Fi address and Limit IP address tracking.

## 如何修复

1. Turn off the VPN until you are signed in. Also pause its kill switch, if it has one.
2. If the sign-in page does not appear, forget the network first. Then join it again from the Wi-Fi menu.
3. Forgetting the network removes its settings. Do it before the next steps, not after.
4. In the network's Details, turn off Limit IP address tracking. This also turns off Private Relay for that network.
5. Set Private Wi-Fi address to Fixed before you buy or redeem a pass. Do not change it after that.
6. If you use custom DNS, remove it for a short time.

   ```
   sudo networksetup -setdnsservers Wi-Fi empty
   ```

   需要管理员密码。
7. If a DNS profile is installed, remove it for the flight. Install it again after you land.
8. 在浏览器中打开一个使用 http（而非 https）的页面，例如 http://captive.apple.com。
9. Sign in, or buy or redeem the pass, on the airline's page. Use the address only if the airline gives it.
10. If the pass is in use on the phone, log out there first, if the airline's page allows it.
11. After you sign in, turn on the VPN, Private Relay and your DNS again.

## 使用 Kilobat

1. Check for a sign-in page with Kilobat's diagnosis.

   ```
   kilobat diagnose --json
   ```

   输出 网络要求登录时，`measurements.captivePortal` 为 `true`。
2. Show the address of the sign-in page that the network sent Kilobat's check to.

   ```
   kilobat portal
   ```

   Output When a sign-in page is in the way, it prints its address. `kilobat portal open` opens it in your browser.
3. 如果用 Kilobat 设置过 DNS，登录时请切换回网络提供的 DNS。

   ```
   kilobat dns automatic
   ```
4. 更改 DNS 需要管理员密码。
5. For the provider, the price and how to connect on your airline, see [In-flight Wi-Fi by airline](https://kilobat.app/zh-hans/in-flight-wifi).

## 常见问题

**Why does my phone work when the Mac does not?**

The phone often signed in first, or through the airline's app. It also often has no VPN, custom DNS or DNS profile.

**What is the address of my airline's sign-in page?**

It differs by airline and Wi-Fi provider. Use the address only when the airline publishes it. Otherwise open http://captive.apple.com.

**我可以在飞机 Wi-Fi 上使用 VPN 吗？**

Turn it on only after you sign in. Airline rules for VPNs differ, and many airlines do not publish one.

**Why do I have to pay again after I changed a setting?**

The network can link the pass to the Wi-Fi address. A new private address or a forgotten network can look like a new device.

## 参考资料

- [Apple Developer 新闻：How to modernize your captive network（2020年6月22日）](https://developer.apple.com/news/?id=q78sq5rv)
- [Apple 支持：在 Apple 设备上使用私有 Wi-Fi 地址](https://support.apple.com/en-us/102509)
- [Apple 支持：为特定网站、网络或系统设置管理 iCloud 专用代理](https://support.apple.com/en-us/102022)
- [Apple 支持：在 Mac 上更改 DNS 设置](https://support.apple.com/guide/mac-help/change-dns-settings-on-mac-mh14127/mac)
- [Apple 支持：如果 Mac 无法通过 Wi-Fi 连接到互联网](https://support.apple.com/en-us/101588)
- networksetup(8)，macOS 27.2 自带的 man 手册页

核查日期：2026 年 10 月 29 日。

## 相关指南

- [Mac 上不显示 Wi-Fi 登录页面](https://kilobat.app/zh-hans/guides/captive-portal-not-appearing): 公共网络通常会拦截所有流量，直到你在登录页面上完成登录。
- [Mac 上的专用 Wi-Fi 地址](https://kilobat.app/zh-hans/guides/private-wifi-address): 专用 Wi-Fi 地址会在网络上代替 Mac 的硬件 MAC 地址。
- [iCloud 专用代理导致部分网站出错](https://kilobat.app/zh-hans/guides/icloud-private-relay-sites): iCloud 专用代理让 Safari 浏览器的流量经过两个中继。
- [在 Mac 上使用加密 DNS](https://kilobat.app/zh-hans/guides/encrypted-dns-mac): 普通 DNS 查询不加密。
- [在 Mac 上限制 IP 地址跟踪](https://kilobat.app/zh-hans/guides/limit-ip-address-tracking): “限制 IP 地址跟踪”是针对每个网络的设置。
- [Mac 已连接 Wi-Fi 但无法上网](https://kilobat.app/zh-hans/guides/wifi-connected-no-internet): Wi-Fi 连接只是通往路由器的那一段链路。
