# How to select your proxy location

To change the location of your proxy, modify the location parameter in your username. This ensures your requests are routed through an IP from the selected location.

Depending on your proxy type, you can select different levels of geo-targeting. For a complete list of supported location settings, refer to our [Location Settings FAQ](https://faq.oxylabs.info/en/articles/8832436-location-settings-for-proxies).

### Residential & Mobile Proxies <a href="#h_e4626222e6" id="h_e4626222e6"></a>

Specify a country by using the `cc` parameter in your username. This parameter accepts a two-letter country code (ISO 3166-1 alpha-2 format).

Here, `cc-DE` ensures the request is routed through Germany:

```
curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-cc-DE:PASSWORD" https://ip.oxylabs.io/location 
```

For other countries, replace `DE` with the desired country code (e.g., `cc-FR` for France or `cc-JP` for Japan).

You can use several other geo-targeting settings such as city, state, continent, coordinates and ASN targeting. For more details, refer to:

* [Residential Proxies](https://developers.oxylabs.io/proxies/residential-proxies/location-settings)
* [Mobile proxies](https://developers.oxylabs.io/proxies/mobile-proxies/location-settings)

### Datacenter Proxies <a href="#h_dd1f53e232" id="h_dd1f53e232"></a>

To change the country, modify the `country` parameter in your username.

Here, `country-US` ensures the request is processed through a U.S.-based datacenter IP:

```
curl -x dc.oxylabs.io:8000 -U 'user-USERNAME-country-US:PASSWORD' https://ip.oxylabs.io/location
```

For other countries, replace `country-US` with the desired country code (e.g., `country-FR` for France or `country-JP` for Japan).

For more information on available locations, refer to:

* [Datacenter Proxies](https://developers.oxylabs.io/proxies/datacenter-proxies/select-country)

***

<a href="https://dashboard.oxylabs.io/en/" class="button primary">Head back to the dashboard</a>
