---
title: Using GeoIP with XCUITests
description: Perform geolocation testing with XCUITest. Run your XCUITests from various
  parts in the world.
source_url:
  html: https://testingbot.com/support/app-automate/xcuitest/set-ip-geolocation
  md: https://testingbot.com/support/app-automate/xcuitest/set-ip-geolocation/index.md
---
# Use IP geolocation

TestingBot's GeoIP feature allows you to test your app from various parts of the world, by using IP addresses in [over 20 different countries](https://testingbot.com/support/web-automate/selenium/test-options#geo).   
 When you enable GeoIP, traffic originating from the iOS device which is running your XCUITest will come from an IP address in the country you specified.

## GeoIP example

To get started with location testing, you can specify the geoLocation option when starting a XCUITest.   
 Please see the example below where we specify that the app should connect through Germany.

[CLI](https://testingbot.com#)[cURL](https://testingbot.com#)

    testingbot xcuitest app.ipa app-test.zip \
      --device "iPhone 13" \
      --real-device \
      --geo-location "DE"

The `DE` abbreviation is the ISO code of Germany. You can find other [GeoIP country codes](https://testingbot.com/support/web-automate/selenium/test-options#geo) to use.

    curl -u api_key:api_secret \
    -X POST "https://api.testingbot.com/v1/app-automate/xcuitest/:id/run" \
    -d '{ "options": { "geoLocation": "DE" }, "capabilities":[{"version":"15.5", "deviceName":"iPhone 13", "platformName":"iOS"}]}' \
    -H "Content-Type: application/json"

The `DE` abbreviation is the ISO code of Germany. You can find other [GeoIP country codes](https://testingbot.com/support/web-automate/selenium/test-options#geo) to use.

Was this page helpful? Yes No 

## Looking for More Help?

Have questions or need more information?   
 You can reach us via the following channels:

- [Email us](https://testingbot.com/contact/new)
- [Join our Slack Channel](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
