Skip to content

Commit e73993f

Browse files
authored
Update running-on-device.md (#2357)
* Update running-on-device.md Remove the parts that mention xip.io since it's no longer used. facebook/react-native@40a8434#diff-0eeea47fa4bace26fa6c492a03fa0ea3923a2d8d54b7894f7760cb9131ab65eb * Update running-on-device.md
1 parent 2f651e4 commit e73993f

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

docs/running-on-device.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -373,24 +373,7 @@ Make sure that the build script detected the IP address of your machine correctl
373373

374374
![](/docs/assets/XcodeBuildIP.png)
375375

376-
Open the **Report navigator** tab, select the last **Build** and search for `xip.io`. The IP address which gets embedded in the app should match your machines IP address plus the domain `.xip.io` (e.g. 10.0.1.123.xip.io)
377-
378-
#### 3. Network/router configuration
379-
380-
React Native uses the wildcard DNS service **xip.io** to address your device, as Apple ATS prohibits URLs with IP addresses instead of domain names, and developers' networks are often not set up to resolve local hostnames. Some routers have security features to prevent DNS Servers from resolving to anything in the local IP range.
381-
382-
Now check if you are able to resolve the xip.io address, by running `nslookup`.
383-
384-
```bash
385-
$ nslookup 10.0.1.123.xip.io
386-
```
387-
388-
If it doesn't resolve your local IP address either the **xip.io** service is down or more likely your router prevents it.
389-
390-
To still use xip.io behind your router:
391-
392-
- configure your phone to use Google DNS (8.8.8.8)
393-
- disable the appropriate security feature in your router
376+
Open the **Report navigator** tab, select the last **Build** and search for `IP=` followed by an IP address. The IP address which gets embedded in the app should match your machines IP address.
394377

395378
## Building your app for production
396379

website/versioned_docs/version-0.63/running-on-device.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -373,24 +373,7 @@ Make sure that the build script detected the IP address of your machine correctl
373373

374374
![](/docs/assets/XcodeBuildIP.png)
375375

376-
Open the **Report navigator** tab, select the last **Build** and search for `xip.io`. The IP address which gets embedded in the app should match your machines IP address plus the domain `.xip.io` (e.g. 10.0.1.123.xip.io)
377-
378-
#### 3. Network/router configuration
379-
380-
React Native uses the wildcard DNS service **xip.io** to address your device, as Apple ATS prohibits URLs with IP addresses instead of domain names, and developers' networks are often not set up to resolve local hostnames. Some routers have security features to prevent DNS Servers from resolving to anything in the local IP range.
381-
382-
Now check if you are able to resolve the xip.io address, by running `nslookup`.
383-
384-
```bash
385-
$ nslookup 10.0.1.123.xip.io
386-
```
387-
388-
If it doesn't resolve your local IP address either the **xip.io** service is down or more likely your router prevents it.
389-
390-
To still use xip.io behind your router:
391-
392-
- configure your phone to use Google DNS (8.8.8.8)
393-
- disable the appropriate security feature in your router
376+
Open the **Report navigator** tab, select the last **Build** and search for `IP=` followed by an IP address. The IP address which gets embedded in the app should match your machines IP address.
394377

395378
## Building your app for production
396379

0 commit comments

Comments
 (0)