# How to Target a Country, State or City | Core Proxies

Source: https://coreproxies.com/help/article/how-to-select-a-certain-proxy-geolocation/

Last updated: 2026-11-27

## How to Target a Country, State or City with a Proxy

How you pick the location depends on the product: country, state and city on Residential, where the country is part of the username, and country only on the mobile plans, where you set it in your dashboard.

November 27, 2026 · 4 min read · Locations

### When the location matters

Many sites show different content depending on where a visitor connects from: prices and currency, product availability, search results, language, and advertisements. To see a page the way a visitor in [Germany](https://coreproxies.com/country/DE/) sees it, the request has to leave from a German IP address. Typical cases are [price monitoring](https://coreproxies.com/use-case/price-monitoring/) across markets, [ad verification](https://coreproxies.com/use-case/ad-verification/) and [search result collection](https://coreproxies.com/use-case/serp-scraping/).

When the location does not matter, leave it open. A wider pool gives you more addresses to rotate through.

### Targeting by product

| Product | Targeting level | Coverage |
| --- | --- | --- |
| Residential | Country, state and city | 25M+ residential IPs in 195+ countries |
| Unlimited Residential | Country (state and city in the Proxy generator) | 10M+ residential IPs in 195+ countries |
| Datacenter | Country, from the locations in your order | 6 locations in 5 countries: Auburn (US), Berlin and Frankfurt (DE), Amsterdam (NL), London (GB), Toronto (CA) |
| ISP | Single location | Auburn, US |
| IPv6 | Country, from the locations in your order | 4 countries: US, UK, NL, DE |
| Rotating Mobile | All countries or one country | 23 carrier networks in 13 countries |
| Mobile Proxy (Reset Link) | All countries or one country | 23 carrier networks in 13 countries |

The [locations page](https://coreproxies.com/locations/) lists 100 countries with the number of residential IPs, cities and regions in each. Those figures describe the Residential pool. Mobile coverage, with the carriers in each country, is on the [Rotating Mobile page](https://coreproxies.com/product/rotating-mobile/#coverage).

### Residential: country in the username

On Residential and Unlimited Residential the location travels with the username. Add `-country-` and a two-letter country code in lower case to your username to get IPs from that country, for example `USERNAME-country-de`. One username carries one country; to work in several countries, use one username per country.

```text
# German IP, new IP with every new connection
HOST:PORT:USERNAME-country-de:PASSWORD

# German IP, kept for 600 seconds
HOST:PORT:USERNAME-country-de-session-482913-ttl-600:PASSWORD
```

Replace `HOST`, `PORT`, `USERNAME` and `PASSWORD` with the values from your dashboard. The order of the parts is fixed: country first, then the session number, then the TTL in seconds. Without a session, every new connection gets a new IP from the country you named. The session rules are explained in [getting started with residential proxies](https://coreproxies.com/help/article/getting-started-with-residential-proxies/#sessions).

You do not have to type any of this. The Proxy generator in your dashboard builds the username for you: pick the location, the session type and the format, then copy the lines. If you select several countries there, it spreads the generated lines across them.

**State and city** are chosen in the Proxy generator, with a single country selected; it adds them to the username for you. Copy the generated lines instead of writing state or city names by hand.

Narrow targeting means a smaller pool

A country holds more addresses than one of its cities. Pick the widest location that still gives you the content you need: country first, then state or city only when the page differs inside the country.

### Mobile plans: location in the dashboard

On Rotating Mobile and Mobile Proxy (Reset Link) the username does not carry a location. You choose All countries or a single country in your [dashboard](https://coreproxies.com/dashboard/), and the carrier inside that country is picked automatically. On Mobile Proxy (Reset Link), changing the location also gives you a new IP.

Datacenter and IPv6 orders let you pick a country from the locations in your order, and ISP proxies come from a single location. Connection details for your order are shown in your dashboard.

### Verify the exit IP

Send a request through the proxy to `https://api.ipify.org`, which returns the address it sees:

```bash
curl -x "http://HOST:PORT" \
  -U "USERNAME-country-de:PASSWORD" \
  "https://api.ipify.org?format=json"
```

The service returns only the address. If the proxy is set in a browser, open the [My IP tool](https://coreproxies.com/tools/my-ip/), which shows the address and the country it maps to. For city-level detail, look the address up in an IP geolocation database. Two points help when reading the result:

- **Databases disagree.** Each geolocation provider keeps its own data, and a city-level result can differ between them. Country-level results are far more consistent.
- **The target site decides.** What counts is the database the site you work with relies on. The most reliable test is to load a page of that site whose content depends on location, such as a currency or a delivery region, and compare.

The commands for each system are in [testing a proxy on Linux](https://coreproxies.com/help/article/how-to-test-a-proxy-on-linux/) and [testing a proxy on Windows](https://coreproxies.com/help/article/how-to-test-a-proxy-on-windows/).

### Frequently asked questions

#### Which product should I use for city-level targeting?

Residential, which offers country, state and city targeting across its pool. State and city are chosen in the Proxy generator in your dashboard.

#### Can I combine a country with a sticky session?

Yes, on Residential and Unlimited Residential. Put the country first, then the session: USERNAME-country-de-session-482913-ttl-600 keeps one German IP for 600 seconds.

#### Can I pick the mobile carrier?

No. On the mobile plans you choose All countries or a single country, and the carrier inside that country is picked automatically.

#### The country I need is not listed. What can I do?

Check the [locations page](https://coreproxies.com/locations/) first, then email [info@coreproxies.com](mailto:info@coreproxies.com) with the country and the proxy type you are considering.

### See where the network reaches

Browse the country list, then create an account and build your proxy lines in the Proxy generator.

[Get started](https://coreproxies.com/register/) · [See locations](https://coreproxies.com/locations/)

Next article

[Using Core Proxies with Python (Requests) →](https://coreproxies.com/help/article/python/)
