---
title: "How Does Country and City Targeting Work in a Proxy?"
description: "Providers tag each IP with a location database and send your request from an IP that matches the tag. Why cities drift and how to verify location."
url: https://proxynet.io/blog/geo-targeting-proxy-explained
date: 2026-12-01
author: "Acar Diveroli"
category: "Proxies"
lang: en
---

# How Does Country and City Targeting Work in a Proxy?

Country and city targeting means a proxy request leaves from an IP address in the country or city you choose. The provider gives every IP in its pool a country and city tag from a location database. When you choose a location, the gateway routes the request to an IP that matches this tag. The target site looks the same IP up in its own database and does not always find the same city. This post explains where the tag comes from, the difference between country and city, and how to verify the location.

> **Note: Short answer**
>
> The provider tags every exit IP with a country and city from a location database, then sends your request from an IP that matches the tag you chose. The country tag is usually right. The city tag is approximate, and the target site may show a different city.

## How targeting works behind the scenes

Geo-targeting is a matching job. The provider tags IPs, and the gateway routes each request by tag. The process runs in four steps:

1. **The pool forms.** The provider holds a large number of exit IPs on home broadband and mobile lines. These IPs belong to operators in different countries.
2. **Each IP gets a tag.** The provider looks every IP up in an IP location database. The country, region and city it returns become the IP's tag.
3. **The request carries the tag.** You pick a country and city in the dashboard. In Proxynet, the dashboard writes that choice into the username. A city-targeted username carries a part such as `country-tr-city-istanbul`.
4. **The gateway matches.** The gateway reads the username. It picks an IP that matches the tag and is online at that moment, and sends the request from there.

Databases build location from registry records, network measurements and files that operators publish themselves. That file is called a geofeed. RFC 8805 defines it as one address block per line: the block first, then country, region and city. RFC 9632 sets out how the file's address is written into the block's registry record.

Even so, a geofeed is not an exact measurement. RFC 8805 states plainly that consumers may treat the file as a hint only. Even the basis of the tag is a declaration.

On a rotating connection, every new request gets a new IP from the same tag. In a sticky session, the IP stays fixed for 1-60 minutes, and the tag stays with it. If you need the same location across a whole workflow, choose sticky.

## Country vs city

The country tag is solid, because address blocks are assigned to operators inside a country and rarely cross borders. The city tag is a guess about how the operator spreads its addresses inside the country. Picking a city means leaning on one more layer of that guess.

| | Country targeting | City targeting |
|---|---|---|
| Basis of the tag | Block record and the operator's country | The database's city guess |
| Drift on the target site | Rare | Common, often a neighbouring city |
| Matching IPs | Wide | Narrower |
| Choose it for | Language, currency, country limits | Local search, city pricing, local ads |

Picking a city narrows the pool, with two practical effects. On a rotating connection you hit the same IPs more often, and a small city may have few matching IPs online at that moment.

Proxynet offers country and city selection with [Residential Proxy](https://proxynet.io/residential-proxy) and mobile proxies. You can see the selectable cities in Türkiye on the [Türkiye location page](/locations/turkiye). If the job works at country level, do not pick a city.

## Why cities drift

The main cause of city drift is that the two sides look at different databases. The provider's tag comes from one source. The location the target site sees comes from another. Two companies can guess different cities for the same IP. The country usually matches in both.

The other causes come from the IP itself:

- **Regional pools.** An operator can spread one address block across several provinces. The database often files that block under the region's largest city.
- **Mobile exit points.** On a mobile line, traffic reaches the internet from the operator's core network. Phones across a wide region can share the same IP. MaxMind notes that in this case it returns no city at all, only country and region.
- **Delayed updates.** When an operator moves a block to another region, databases learn about it in a later release. Until then the old city shows.

We covered the general limits of IP location in [why your IP location is wrong](/blog/ip-geolocation-accuracy). The practical point here is short: in city targeting, a neighbouring city is not an error but an expected drift. If the country is wrong, the problem is something else.

## Location signals beyond the IP

A proxy changes only the IP address. A site can read location from several sources together, and most of them are not touched by the proxy.

| Signal | Where it comes from | Does the proxy change it |
|---|---|---|
| IP address | The connection's exit point | ✓ |
| Language | The browser's `Accept-Language` header | ✗ |
| Time zone | The operating system, read with JavaScript | ✗ |
| Account setting | Saved address, billing country, store region | ✗ |
| Device location | GPS, Wi-Fi networks, cell towers | ✗ |
| DNS resolution | The server that resolves the domain | Depends on setup |

Device location is the most precise signal. The W3C Geolocation API specification requires the browser not to share location without the user's express permission. If you granted it, the site looks at the location the device reports, not at the IP.

On a signed-in account, a site can put the saved country ahead of the IP. DNS is a quieter trap. With an HTTP proxy and with SOCKS5 using remote resolution, the proxy resolves the domain. With local resolution, your own computer does it. Some content delivery networks pick a server based on the resolver's location.

In localization testing, the goal is to see what the site shows a visitor in that country. So the test profile should look like that visitor too. Set the language and time zone to the target country and keep location permission off.

## Signs of wrong targeting

A wrong location usually shows in a small part of the page. Reading the sign correctly tells you whether the problem is the IP or another signal.

| Sign | Likely cause |
|---|---|
| Country right, page in the wrong language | Browser language or account language |
| Currency stuck on the old country | Account setting or an old region in a cookie |
| Local results from a neighbouring city | Database difference in the city tag |
| Results change on every request | Rotating connection, each request a new IP |
| IP check is right, site says "not available in your region" | The site uses another database or the device location |
| Your own country shows | Traffic is not going through the proxy, or DNS is local |

If the IP check shows the right country but the site gets it wrong, the problem is usually not the IP. Check language, time zone and account settings first.

## Verifying the location

You cannot verify a location by asking a single service, because each one checks its own database. You need at least two independent sources and the target site itself.

1. **Find the exit IP.** Open an IP check page through the proxy and note the address. If it matches the address you see with the proxy off, traffic is not going through the proxy.
2. **Ask two or three services about the same IP.** Pick location services that use data from different companies. If the country is the same in all of them, the tag is right.
3. **Read the city difference.** A neighbouring city or the region's largest city is expected drift. If a completely different region shows, note it.
4. **Look at what the target site shows.** The delivery region, weather box, currency or "near you" list is the site's own decision. That is the real measure.
5. **Run the test in one session.** On a rotating connection, the IP in step one and the IP in step four can differ. A sticky session lets you run every step on the same IP.

The detailed check steps are in [How to Test a Proxy](/blog/how-to-test-a-proxy). If the problem persists, send your provider the IP address, the time and the services you checked. If even the country is wrong, that is a tag error and the provider needs to know.

## The bottom line

Trust country targeting, treat city targeting as an approximate choice and verify location through the target site's eyes. Run multi-step tests on the same IP with [Sticky Proxy](https://proxynet.io/sticky-proxy). Above all, check language, time zone and location permission: when the IP is right but the location is wrong, that is the first place to look.

## Sources

- [RFC 8805, A Format for Self-Published IP Geolocation Feeds: rfc-editor.org](https://www.rfc-editor.org/rfc/rfc8805.html)
- [RFC 9632, Finding and Using Geofeed Data: rfc-editor.org](https://www.rfc-editor.org/rfc/rfc9632.html)
- [Geolocation, W3C specification, permission section: w3.org](https://www.w3.org/TR/geolocation/)
- [Geolocation Accuracy, MaxMind support page: support.maxmind.com](https://support.maxmind.com/hc/en-us/articles/4407630607131-Geolocation-Accuracy)

## Frequently asked questions

### Why does a city-targeted IP show up in another city?

Because of database differences. The provider tags the IP with one location database, and the site you check may use another. Two companies can guess different cities for the same IP. If a neighbouring city or the region's largest city shows, that is expected drift. If the country is wrong too, send your provider the IP address, the time and the service you checked.

### How reliable is country targeting?

Far more reliable than city targeting. Address blocks are assigned to operators inside a country and rarely cross borders. So databases usually agree on the country. Drift shows up mostly on newly transferred or newly moved blocks. If two independent services show the same country, you can trust the tag.

### Does a proxy change language and time zone too?

No. A proxy changes only the IP address the site sees. The language preference your browser sends, your operating system's time zone, the saved country on your account and the device's location permission all stay as they are. In localization testing, set these to the target country separately and keep location permission off. Otherwise the site may pick content by these signals, not by the IP.

### Does picking a city shrink the IP pool?

Yes. IPs with a city tag are only a part of those with the country tag. On a rotating connection you hit the same IPs more often. Small cities may have few matching IPs online at a given moment. If your job is about language, currency or a country limit, a country is enough. Pick a city for local search, city pricing or local ads.

### Does a sticky session keep the location fixed?

Yes, for the length of the session. In a sticky session the same IP is kept for 1-60 minutes, and its location tag stays with it. When the time runs out, the new IP comes from the same country and city tag. The target site may still place the new IP in a different city. That is why multi-step tests and verification should finish inside one session.

### Can I choose a mobile carrier in Proxynet?

No. Proxynet does not let you choose a mobile carrier. You choose location at country and city level. The exit comes from a carrier line that serves the location you picked. To see which network you exit from, look at the organization (org) line in an IP location service's response. That line shows the network the IP address is registered to.
