99 lines
2.9 KiB
Markdown
Raw Normal View History

2020-07-23 18:04:09 -04:00
<!--
2020-10-02 09:42:15 -04:00
Title: How to disable IPv6 on iOS (cellular-only) and macOS
Description: Learn how to disable IPv6 on iOS (cellular-only) and macOS.
2020-07-23 18:04:09 -04:00
Author: Sun Knudsen <https://github.com/sunknudsen>
Contributors: Sun Knudsen <https://github.com/sunknudsen>
2020-09-10 10:07:07 -04:00
Reviewers:
2020-07-23 18:04:09 -04:00
Publication date: 2020-07-18T10:28:23.605Z
Listed: true
2023-09-06 19:23:39 -04:00
Pinned:
2020-07-23 18:04:09 -04:00
-->
2020-10-02 09:42:15 -04:00
# How to disable IPv6 on iOS (cellular-only) and macOS
2020-07-23 18:04:09 -04:00
2023-09-06 19:28:21 -04:00
[![How to disable IPv6 on iOS (cellular-only) and macOS (see change log)](how-to-disable-ipv6-on-ios-cellular-only-and-macos-see-change-log.jpg)](https://www.youtube.com/watch?v=Nzx9T7GtmT4 "How to disable IPv6 on iOS (cellular-only) and macOS (see change log)")
2020-07-23 18:04:09 -04:00
2020-09-10 15:27:28 -04:00
> Heads-up: unfortunately this guide will not work on carriers or ISPs that have migrated their networks to IPv6-only.
2020-07-23 18:04:09 -04:00
## iOS guide
2020-08-10 19:35:31 -04:00
### Step 1 (on Mac): download and open [Apple Configurator 2](https://support.apple.com/apple-configurator)
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 2 (on Mac): create new profile using <kbd>cmd + n</kbd>
2020-07-23 18:04:09 -04:00
2020-10-10 10:43:57 -04:00
### Step 3 (on Mac): configure “General” settings
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![apple-configurator-general](./apple-configurator-general.png)
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 4 (on iPhone): find APN settings
2020-07-23 18:04:09 -04:00
2020-10-10 10:43:57 -04:00
Open “Settings“, then “Cellular“, then “Cellular Data Network“.
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![ios-cellular-data-network](./ios-cellular-data-network.png)
2020-07-23 18:04:09 -04:00
2020-10-10 10:43:57 -04:00
### Step 5 (on Mac): configure “Cellular” settings
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![apple-configurator-cellular](./apple-configurator-cellular.png)
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 6 (on Mac): save provisioning profile
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 7 (on Mac): connect iPhone to Mac
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 8 (on Mac): double-click on iPhone
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![apple-configurator-iphone](./apple-configurator-iphone.png)
2020-07-23 18:04:09 -04:00
2020-10-10 10:43:57 -04:00
### Step 9 (on Mac): click on “Profile” tab, then “Add Profiles…”, select saved provisioning profile and click “Add”
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![apple-configurator-add-profile](./apple-configurator-add-profile.png)
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 10 (on iPhone): review profile
2020-07-23 18:04:09 -04:00
2020-10-10 10:43:57 -04:00
Open “Settings”, then “Profile Downloaded” and tap “Install”
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![ios-install-profile](./ios-install-profile.png)
2020-07-23 18:04:09 -04:00
2020-12-03 06:29:52 -05:00
👍
2020-07-23 18:04:09 -04:00
## macOS guide
2020-08-10 19:35:31 -04:00
### Step 1: list network interfaces
2020-07-23 18:04:09 -04:00
2020-08-25 07:40:01 -04:00
```console
$ networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Wi-Fi
iPhone USB
Thunderbolt Ethernet
2020-07-23 18:04:09 -04:00
```
2020-08-10 19:35:31 -04:00
### Step 2: disable IPv6
2020-07-23 18:04:09 -04:00
2020-09-10 15:27:28 -04:00
> Heads-up: use network interfaces found in [step 1](#step-1-list-network-interfaces) (most computers only have `Wi-Fi` interface)
2020-08-25 07:40:01 -04:00
2020-07-23 18:04:09 -04:00
```shell
networksetup -setv6off "Wi-Fi"
2020-08-25 07:40:01 -04:00
networksetup -setv6off "iPhone USB"
2020-07-23 18:04:09 -04:00
networksetup -setv6off "Thunderbolt Ethernet"
```
---
## Want things back the way they were before following this guide? No problem!
2020-08-10 19:35:31 -04:00
### Step 1 (on iPhone): remove provisioning profile
2020-07-23 18:04:09 -04:00
2020-10-10 10:43:57 -04:00
Open “Settings”, then “General”, then “Profile”, and tap provisioning profile, then “Remove Profile”.
2020-07-23 18:04:09 -04:00
2023-09-06 19:29:50 -04:00
![ios-remove-profile](./ios-remove-profile.png)
2020-07-23 18:04:09 -04:00
2020-08-10 19:35:31 -04:00
### Step 2 (on Mac): set network interfaces to automatic
2020-07-23 18:04:09 -04:00
```shell
networksetup -setv6automatic "Wi-Fi"
2020-08-25 07:40:01 -04:00
networksetup -setv6automatic "iPhone USB"
2020-07-23 18:04:09 -04:00
networksetup -setv6automatic "Thunderbolt Ethernet"
```
2020-12-03 06:29:52 -05:00
👍