Skip to main content

Use IP Geolocation

BrowserStack’s IP Geolocation feature allows you to simulate website and mobile behavior from different locations by using IP addresses hosted in 45+ countries around the world. By incorporating IP geolocation into your tests, you can verify scenarios such as localized pricing, languages, product listings and much more.

With IP geolocation enabled, traffic from your mobile app will originate from an IP address hosted in the country you have chosen. With over 45+ countries to choose from, you can now test how your mobile app behaves across the world.

Note: IP geolocation is an Enterprise plan feature on BrowserStack. Contact sales for details

Use the browserstack.geoLocation capability to test country-specific behavior for your apps :

Capability Description Value
browserstack.geoLocation Test how your app behaves in specific countries < Two letter country code >
Example: “CN” for China, “FR” for France, “IN” for India and “US” for United States of America

Example:

desired_caps = {
    'browserstack.geoLocation': 'BG'
}
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.geoLocation", "BG");
desired_cap = {
	'browserstack.geoLocation': 'BG'
}
var capabilities = {
	'browserstack.geoLocation': 'BG'
}
DesiredCapabilities capability = new DesiredCapabilities();
capability.SetCapability("browserstack.geoLocation", "BG");
$capabilities = new DesiredCapabilities();
$capabilities->setCapability("browserstack.geoLocation", "BG");

List of country codes:

Country Name Country Code
Argentina AR
Australia AU
Austria AT
Belgium BE
Brazil BR
Bulgaria BG
Canada CA
Chile CL
China CN
Croatia HR
Czech Republic CZ
Denmark DK
Egypt EG
Finland FI
France FR
Germany DE
Greece GR
Hong Kong HK
Hungary HU
Iceland IS
India IN
Ireland IE
Israel IL
Italy IT
Japan JP
Jordan JO
Malaysia MY
Mexico MX
Netherlands NL
New Zealand NZ
Norway NO
Philippines PH
Poland PL
Portugal PT
Russia RU
Singapore SG
South Africa ZA
South Korea KR
Spain ES
Sweden SE
Switzerland CH
Taiwan TW
Thailand TH
Ukraine UA
United Kingdom GB
United States US
Vietnam VN

Note: Complete list of over 45+ countries can be found in the IP geolocation list

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Talk to an Expert