---
title: Using GeoIP with Espresso Testing
description: Android Espresso Testing from various parts of the world. Use international
  proxies with Espresso.
source_url:
  html: https://testingbot.com/support/app-automate/espresso/set-ip-geolocation
  md: https://testingbot.com/support/app-automate/espresso/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, all traffic from your mobile Android app will originate from a specific IP address hosted in the country that you choose.

## GeoIP example

To use GeoIP, you can specify the geoIP option when starting an Espresso test.   
 Please see the example below where we specify that the app should connect via Germany.

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

    testingbot espresso app.apk app-test.apk \
      --device "Pixel 6" \
      --platform-version "12" \
      --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/espresso/:id/run" \
    -d '{ "espressoOptions": { "geoLocation": "DE" }, "capabilities":[{"version":"12", "deviceName":"Pixel 6", "platformName":"Android"}]}' \
    -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)
