Test IPv6 Compatibility of iOS Application
Apple announced that all apps submitted to App Store should support IPv6-only networking, otherwise app will be rejected.
Get updates, tips, and how-to information on a range of development, App Store, and Mac App Store topics.developer.apple.com
If you are developing an iOS application and using non-standart networking libraries (let’s say curl library) or 3rd party development environments your application has risk to get rejected.
In this article I’ll try to explain how you can test if your application supports IPv6-only networks. You will need a mac and an ethernet cable for Internet connection, here we go.
Setting Up IPv6-only Network
- Connect your Mac to LAN via ethernet cable (you can’t use Wi-Fi for Internet connection since we’ll use it later)
- Go to
- Navigate to
Internet Sharingfrom left menu
Create NAT64 Networkfrom bottom-left corner (if you don’t see it go back and be sure you’re pressing
optionkey when you navigate to
Share your connection fromdrop-down menu
- After you select
To computers usingyou’ll see
Wi-Fi Optionsbutton enabled in
To computers using
Wi-Fi Optionsto set your network name and password
- When you’re done setting Wi-Fi options, enable
Internet Sharingfrom side menu
Startwhen you asked for confirmation
Test Your Application
If you followed steps and set everything correctly you should be able to see your Wi-Fi network from your Apple device.
- From device, connect to NAT64 network over Wi-Fi. Make sure mobile data setting is set to off.
- Test your network, check if you can open
google.comfrom your browser
- If your network is working, open your application and test if network modules are working or not
- That’s it!
Use For Anything
What you have done so far is actually setting your mac device as NAT64 gateway which translates between IPv6 and IPv4.
Testing iOS application’s IPv6 compatibility is just one scenario. You can test any PC, Android or embedded network application’s IPv6 compatibility over this network.