# Check this app against App Store Review Guideline 2.5.5: IPv6 networks

Apps must work fully on networks that only support IPv6.

Go through this codebase for each problem below. For each one that applies, fix it on a new git branch with the steps for this app's stack (React Native and Expo, Swift, or Flutter). If none apply, say so and why.

## The app connects to a hard-coded IPv4 address

Often a rejection.

**What Apple wants:** undefined App Review tests on an IPv6-only network, where an IPv4 address written into the app can't be reached, so whatever it serves fails for the reviewer (Guideline 2.5.5).

**How to fix it:** Reach the server by its host name instead of its IPv4 address.

Steps:

1. Find the address on this card in the code and configuration.
2. Use the host name of that server instead (it resolves on IPv6-only networks), and use the system's networking APIs rather than raw sockets to an address.
3. Run the test again.

## Networking may fail on IPv6-only networks

Often a rejection.

**What Apple wants:** App Review tests on IPv6-only networks, and the app has to work fully there (Guideline 2.5.5). Hard-coded IPv4 addresses and IPv4-only socket code can fail.

**How to fix it:** Use hostnames over HTTPS with the system's standard networking APIs.

Steps:

1. Replace IP addresses with a hostname.
2. Replace IPv4-only socket code with URLSession, fetch or the Network framework.

---

AppScend checks an app against every guideline at once, on the developer's Mac: `npx appscend scan --json` in the app's root folder (docs: https://appscend.ai/docs).

Source: https://appscend.ai/guidelines/2-5-5
