|
| 1 | +--- |
| 2 | +id: appium-ip-geolocation |
| 3 | +title: IP Geolocation |
| 4 | +hide_title: true |
| 5 | +sidebar_label: Supported-IP-Geolocation |
| 6 | +description: This document provides information about configuring IP Geolocation for tests on the LambdaTest platform and also provides a list of supported geolocations on Real Devices. |
| 7 | +keywords: |
| 8 | + - IP Geolocation |
| 9 | + - geolocation testing |
| 10 | + - testing tools |
| 11 | + - LambdaTest |
| 12 | + - IP geolocation support |
| 13 | + |
| 14 | +url: https://www.lambdatest.com/support/docs/appium-ip-geolocation/ |
| 15 | +site_name: LambdaTest |
| 16 | +slug: appium-ip-geolocation/ |
| 17 | +--- |
| 18 | + |
| 19 | + |
| 20 | +import CodeBlock from '@theme/CodeBlock'; |
| 21 | +import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys"; |
| 22 | + |
| 23 | +import Tabs from '@theme/Tabs'; |
| 24 | +import TabItem from '@theme/TabItem'; |
| 25 | + |
| 26 | +<script type="application/ld+json" |
| 27 | + dangerouslySetInnerHTML={{ __html: JSON.stringify({ |
| 28 | + "@context": "https://schema.org", |
| 29 | + "@type": "BreadcrumbList", |
| 30 | + "itemListElement": [{ |
| 31 | + "@type": "ListItem", |
| 32 | + "position": 1, |
| 33 | + "name": "Home", |
| 34 | + "item": "https://www.lambdatest.com" |
| 35 | + },{ |
| 36 | + "@type": "ListItem", |
| 37 | + "position": 2, |
| 38 | + "name": "Support", |
| 39 | + "item": "https://www.lambdatest.com/support/docs/" |
| 40 | + },{ |
| 41 | + "@type": "ListItem", |
| 42 | + "position": 3, |
| 43 | + "name": "IP Geolocation", |
| 44 | + "item": "https://www.lambdatest.com/support/docs/appium-ip-geolocation/" |
| 45 | + }] |
| 46 | + }) |
| 47 | + }} |
| 48 | +></script> |
| 49 | + |
| 50 | +# IP Geolocation |
| 51 | + |
| 52 | +Lambdatest's IP Geolocation feature empowers users to test their websites and mobile applications from various geographical locations worldwide. This feature enables users to simulate traffic originating from different countries and regions, allowing for comprehensive testing of platform functionalities across diverse global markets. |
| 53 | + |
| 54 | +By the end of this document, you'll learn how to use this feature in both manual and automation tests. Additionally, this document will provide a list of all supported IP geolocations on Lambdatest. |
| 55 | + |
| 56 | + |
| 57 | +## Support for Manual Testing on Real Devices |
| 58 | + |
| 59 | +Once a session starts , navigate to the toolbar and select **IP Geolocation** followed by any location from the list to change the geolocation of the device. |
| 60 | + |
| 61 | + |
| 62 | +<img loading="lazy" src={require('../assets/images/app-automation/ipgeolocation.png').default} alt="Image" width="100" height="100" className="doc_img"/> |
| 63 | + |
| 64 | +## Support for Automation on Real Devices |
| 65 | + |
| 66 | +To harness the **IP Geolocation** feature in your automated tests, employ the `geoLocation` capability along with a two-letter country code from the list of supported countries provided below. This capability enables you to modify the device's geolocation to the specified location. If this capability is not added, the device will automatically update its geolocation based on its physical location. |
| 67 | + |
| 68 | +**Java Example:** |
| 69 | +```java |
| 70 | +// Java code for configuring IP Geolcation in tests on LambdaTest |
| 71 | +DesiredCapabilities capabilities = new DesiredCapabilities(); |
| 72 | +capabilities.setCapability("geoLocation", "FR"); |
| 73 | +// Add other capabilities as needed |
| 74 | +``` |
| 75 | + |
| 76 | +## Supported IP Geolocations |
| 77 | + |
| 78 | +Below is the list of supported countries along with their respective country codes: |
| 79 | + |
| 80 | +| Name | Code | |
| 81 | +| --------------------------------- | -------- | |
| 82 | +| Andorra | AD | |
| 83 | +| United Arab Emirates | AE | |
| 84 | +| Albania | AL | |
| 85 | +| Armenia | AM | |
| 86 | +| Argentina | AR | |
| 87 | +| Austria | AT | |
| 88 | +| Australia | AU | |
| 89 | +| Adelaide (Australia) | AU/AL | |
| 90 | +| Brisbane (Australia) | AU/BS | |
| 91 | +| Canberra (Australia) | AU/CN | |
| 92 | +| Melbourne (Australia) | AU/ML | |
| 93 | +| Perth (Australia) | AU/PT | |
| 94 | +| Sydney (Australia) | AU/SY | |
| 95 | +| Azerbaijan | AZ | |
| 96 | +| Bosnia and Herzegovina | BA | |
| 97 | +| Bangladesh | BD | |
| 98 | +| Belgium | BE | |
| 99 | +| Bulgaria | BG | |
| 100 | +| Bahrain | BH | |
| 101 | +| La Paz (Bolivia) | BO/LPZ | |
| 102 | +| Brazil | BR | |
| 103 | +| Belarus | BY | |
| 104 | +| Canada | CA | |
| 105 | +| Alberta (Canada) | CA/AB | |
| 106 | +| British Colombia (Canada) | CA/BC | |
| 107 | +| Ontario (Canada) | CA/ON | |
| 108 | +| Switzerland | CH | |
| 109 | +| Chile | CL | |
| 110 | +| China | CN | |
| 111 | +| Colombia | CO | |
| 112 | +| Costa Rica | CR | |
| 113 | +| Curacao | CW | |
| 114 | +| Cyprus | CY | |
| 115 | +| Czech Republic | CZ | |
| 116 | +| Germany | DE | |
| 117 | +| Denmark | DK | |
| 118 | +| Dominican Republic | DO | |
| 119 | +| Ecuador | EC | |
| 120 | +| Estonia | EE | |
| 121 | +| Egypt | EG | |
| 122 | +| Spain | ES | |
| 123 | +| Finland | FI | |
| 124 | +| France | FR | |
| 125 | +| United Kingdom | GB | |
| 126 | +| Georgia | GE | |
| 127 | +| Greece | GR | |
| 128 | +| Guatemala | GT | |
| 129 | +| Hong Kong | HK | |
| 130 | +| Honduras | HN | |
| 131 | +| Croatia | HR | |
| 132 | +| Hungary | HU | |
| 133 | +| Indonesia | ID | |
| 134 | +| Ireland | IE | |
| 135 | +| Israel | IL | |
| 136 | +| Isle of Man | IM | |
| 137 | +| India | IN | |
| 138 | +| Iceland | IS | |
| 139 | +| Italy | IT | |
| 140 | +| Jamaica | JM | |
| 141 | +| Jordan | JO | |
| 142 | +| Japan | JP | |
| 143 | +| Kenya | KE | |
| 144 | +| Kyrgyzstan | KG | |
| 145 | +| Cambodia | KH | |
| 146 | +| Korea | KR | |
| 147 | +| Kuwait | KW | |
| 148 | +| Kazakhstan | KZ | |
| 149 | +| Lebanon | LB | |
| 150 | +| Lithuania | LT | |
| 151 | +| Luxembourg | LU | |
| 152 | +| Latvia | LV | |
| 153 | +| Morocco | MA | |
| 154 | +| Moldova | MD | |
| 155 | +| Mongolia | MN | |
| 156 | +| Malta | MT | |
| 157 | +| Mexico | MX | |
| 158 | +| Malaysia | MY | |
| 159 | +| Nigeria | NG | |
| 160 | +| Nicaragua | NI | |
| 161 | +| Netherlands | NL | |
| 162 | +| Norway | NO | |
| 163 | +| New Zealand | NZ | |
| 164 | +| Oman | OM | |
| 165 | +| Panama | PA | |
| 166 | +| Peru | PE | |
| 167 | +| Philippines | PH | |
| 168 | +| Pakistan | PK | |
| 169 | +| Poland | PL | |
| 170 | +| Puerto Rico | PR | |
| 171 | +| Portugal | PT | |
| 172 | +| Paraguay | PY | |
| 173 | +| Qatar | QA | |
| 174 | +| Romania | RO | |
| 175 | +| Serbia | RS | |
| 176 | +| Russian Federation | RU | |
| 177 | +| Saudi Arabia | SA | |
| 178 | +| Sweden | SE | |
| 179 | +| Singapore | SG | |
| 180 | +| Slovenia | SI | |
| 181 | +| Slovakia | SK | |
| 182 | +| El Salvador | SV | |
| 183 | +| Thailand | TH | |
| 184 | +| Turkmenistan | TM | |
| 185 | +| Tunisia | TN | |
| 186 | +| Turkey | TR | |
| 187 | +| Taiwan | TW | |
| 188 | +| Tanzania | TZ | |
| 189 | +| Honolulu, HI | U3 | |
| 190 | +| Wilmington, DE | U4 | |
| 191 | +| Salem, NH | U5 | |
| 192 | +| Ukraine | UA | |
| 193 | +| United States | US | |
| 194 | +| Ashburn, Virginia (US) | US/AB | |
| 195 | +| Albuquerque, New Mexico (US) | US/ABQ | |
| 196 | +| Atlanta, Georgia (US) | US/AT | |
| 197 | +| Austin, Texas (US) | US/AU | |
| 198 | +| Bluffton, South Carolina (US) | US/BF | |
| 199 | +| Billings, Montana (US) | US/BL | |
| 200 | +| Baltimore, Maryland (US) | US/BM | |
| 201 | +| Boston, Massachusetts (US) | US/BO | |
| 202 | +| Boca Raton, Florida (US) | US/BR | |
| 203 | +| Berkeley Springs, WV (US) | US/BS | |
| 204 | +| Buffalo, New York (US) | US/BU | |
| 205 | +| Brunswick, Maine (US) | US/BWK | |
| 206 | +| Charlotte, NC (US) | US/CH | |
| 207 | +| Chicago, Illinois (US) | US/CHI | |
| 208 | +| Cromwell, Connecticut (US) | US/CM | |
| 209 | +| Columbus, Ohio (US) | US/CO | |
| 210 | +| Cheyenne, Wyoming (US) | US/CY | |
| 211 | +| Detroit, Michigan (US) | US/DET | |
| 212 | +| Dallas-Ft. Worth, Texas (US) | US/DFW | |
| 213 | +| Dallas, Texas (US) | US/DL | |
| 214 | +| Des Moines, Iowa (US) | US/DM | |
| 215 | +| Harrisburg, Pennsylvania (US) | US/HB | |
| 216 | +| Houston, Texas (US) | US/HO | |
| 217 | +| Hollywood, Florida (US) | US/HW | |
| 218 | +| Indianapolis, Indiana (US) | US/IN | |
| 219 | +| Jackson, Mississippi (US) | US/JAC | |
| 220 | +| Jersey City, New Jersey (US) | US/JC | |
| 221 | +| Kansas City, Missouri (US) | US/KC | |
| 222 | +| Los Angeles, California (US) | US/LA | |
| 223 | +| Lincoln, Nebraska (US) | US/LC | |
| 224 | +| Las Vegas, Nevada (US) | US/LV | |
| 225 | +| Manhattan, New York (US) | US/MHT | |
| 226 | +| Miami, Florida (US) | US/MI | |
| 227 | +| Minneapolis, Minnesota (US) | US/MIN | |
| 228 | +| Monticello, Illinois (US) | US/MO | |
| 229 | +| Milwaukee, Wisconsin (US) | US/MW | |
| 230 | +| New Orleans, Louisiana (US) | US/NO | |
| 231 | +| New York City, New York (US) | US/NYC | |
| 232 | +| Ogden, Utah (US) | US/OD | |
| 233 | +| Oklahoma City, Oklahoma (US) | US/OKC | |
| 234 | +| Orlando, Florida (US) | US/ORL | |
| 235 | +| Philadelphia, Pennsylvania (US) | US/PHI | |
| 236 | +| Phoenix, Arizona (US) | US/PHX | |
| 237 | +| Pittsburgh, Pennsylvania (US) | US/PIT | |
| 238 | +| Portland, Oregon (US) | US/POR | |
| 239 | +| Raleigh, North Carolina (US) | US/RA | |
| 240 | +| Richmond, Virginia (US) | US/RM | |
| 241 | +| Reston, Virginia (US) | US/RT | |
| 242 | +| Sacramento, California (US) | US/SAC | |
| 243 | +| South Bend, Indiana (US) | US/SB | |
| 244 | +| Santa Clara, California (US) | US/SC | |
| 245 | +| San Diego, California (US) | US/SD | |
| 246 | +| Seattle, Washington (US) | US/SEA | |
| 247 | +| San Francisco, California (US) | US/SF | |
| 248 | +| Sioux Falls, South Dakota (US) | US/SFL | |
| 249 | +| San Jose, California (US) | US/SJ | |
| 250 | +| Salt Lake City, Utah (US) | US/SLC | |
| 251 | +| Salem, New Hampshire (US) | US/SLE | |
| 252 | +| Sterling, Virginia (US) | US/ST | |
| 253 | +| St Louis, Missouri (US) | US/STL | |
| 254 | +| Tampa, Florida (US) | US/TPA | |
| 255 | +| Memphis, Tennessee (US) | US/W4 | |
| 256 | +| Washington (Herndon), Virginia | US/WAV | |
| 257 | +| Wilmington, Delaware (US) | US/WILM | |
| 258 | +| Denver, Colorado (US) | US/Y6 | |
| 259 | +| Uruguay | UY | |
| 260 | +| Uzbekistan | UZ | |
| 261 | +| Berlin | V2 | |
| 262 | +| Venezuela | VE | |
| 263 | +| Vietnam | VN | |
| 264 | +| London | W8 | |
| 265 | +| New Jersey, New Jersey | X4 | |
| 266 | +| New York City, New York (US) | Z0 | |
| 267 | +| Washington | Z6 | |
| 268 | +| South Africa | ZA | |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | +<nav aria-label="breadcrumbs"> |
| 274 | + <ul className="breadcrumbs"> |
| 275 | + <li className="breadcrumbs__item"> |
| 276 | + <a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com"> |
| 277 | + Home |
| 278 | + </a> |
| 279 | + </li> |
| 280 | + <li className="breadcrumbs__item"> |
| 281 | + <a className="breadcrumbs__link" target="_self" href="https://www.lambdatest.com/support/docs/"> |
| 282 | + Support |
| 283 | + </a> |
| 284 | + </li> |
| 285 | + <li className="breadcrumbs__item breadcrumbs__item--active"> |
| 286 | + <span className="breadcrumbs__link"> |
| 287 | + IP Geolocation |
| 288 | + </span> |
| 289 | + </li> |
| 290 | + </ul> |
| 291 | +</nav> |
0 commit comments