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.

常见问题

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.

参考资料

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