# Proxy country, language and timezone: making them match

> Match a profile's timezone, language and location to its proxy's measured IP. Mosaic draws them for it, re-checks at launch, and guards used languages.

Source: https://mosaicbrowser.com/blog/matching-identity-to-address

## Match the identity to the address it browses from

Match a profile's timezone, language and location to its proxy's measured IP. Mosaic draws them for it, re-checks at launch, and guards used languages.

![Drawn for the IP, not corrected after, beside a screenshot: creating a profile in Mosaic: a checked proxy, and the hardware and locale drawn to match its IP](https://mosaicbrowser.com/covers/matching-identity-to-address.webp)

To make a proxy's country, language and timezone match, take all three from the address the proxy actually comes out at, measured, and do it before the profile is drawn. Mosaic draws each profile's timezone, language and location for its IP, re-checks them on every launch, and moves the language of a used profile only when you tell it to.

## What has to match: proxy country, language and timezone

The pairing between where your IP comes out and what your browser says about itself is the first comparison a consistency scanner makes. The values in it:

- the timezone the browser reports, and the clock offset that follows from it;
- the languages in `navigator.languages` and in the `Accept-Language` header on every request;
- what the Geolocation API answers;
- the public address WebRTC reports.

Any one of them pointing at a different country from the IP is a contradiction no real visitor has. We wrote up the worst case we found in our own code, [a profile that claimed New York from a machine in Austria](https://mosaicbrowser.com/blog/austria-claimed-new-york). The general version, with the by-hand fix for a normal browser, is [browser timezone does not match IP](https://mosaicbrowser.com/guides/browser-timezone-does-not-match-ip).

## Draw for the IP, don't correct afterwards

Our first version built the profile and then fixed it. Now the proxy is chosen before the identity is drawn, and the draw is handed that IP's country and timezone, so the profile is built for the right place the first time. A preset that names a country still wins, because that is an explicit instruction.

The editor shows the result in a banner naming the city, with a sample of how dates and numbers will be written there. That sample is formatted by the same ICU library that will do the formatting inside the profile, so the preview cannot drift from what pages see.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Matched to the proxy’s IP](https://mosaicbrowser.com/features/exit-matching)

## The default that wasn't

For a while this pairing was the default only for a proxy somebody had already pressed Check on. Nothing that creates profiles in bulk presses Check. Two identical API calls with one pasted European gateway, a minute apart, came back as `America/New_York` and then `America/Chicago`. The two answers disagreeing with each other was the evidence: two matches against one IP give one value twice, and two draws from a weighted table give two values.

So creating a profile now measures the IP first. Three rules hold it:

1. **Never fail the create.** A gateway that does not answer still leaves you with the profile, proxy attached.
2. **Never fail silently.** Every create on every surface carries `exitMatch`: whether it matched, from what source, the country, timezone, IP and a reason. A batch behind a dead gateway says so.
3. **One measurement per IP.** The result is cached for five minutes on the exact IP, credentials included, because two sessions on one gateway are two IPs. A rotating result is never cached, since it describes whichever IP answered that second.

## Three places a proxy changes

A proxy is attached, swapped or edited from three different screens, and at first only the launcher looked afterwards.

- **New profile** measures the proxy and draws for it, as above.
- **Swapping the proxy in the editor** clears the old check and runs a new one. Leaving the previous proxy's result on screen would report agreement with an IP that has been swapped out.
- **Editing a saved proxy** offers to re-align every profile behind it. That includes an edit to the username, because that is where sellers put geo targeting: `-country-de` to `-country-us` is six characters and a different continent.

And at launch, `matchExitOnStart`, on by default, resolves the IP again, because a residential pool can move you and a proxy can be attached after creation. For profiles that already exist, `POST /profiles/bulk/match-exit` does the same for a list without opening a browser.

## When we deliberately leave a mismatch

Timezone and geolocation are moved whenever they disagree with the IP.

The language is different. `Accept-Language` rides every request, so a profile that has been sending `de-AT` to a site for a month and then switches to `en-US` has told that site something true about itself. On a profile that has run, Mosaic leaves the language and reports it in `skipped`. Sending `language: "move"` changes it anyway. Do that when the profile is not signed in anywhere. Why the header and `navigator.language` have to agree with each other as well is its own story, in [language beyond navigator](https://mosaicbrowser.com/blog/language-beyond-navigator).

Two smaller honesty rules came out of the same work. An IP that could not be read is `unresolved`, which is not the same as agreeing, and the bulk route counts the two separately. And where our locale table has no row for a country, the language is left alone rather than guessed, and the response names the gap. We found that one on a Russian IP, where the old reason text said "Already agrees with the proxy IP" in the same response that listed the field contradicting it.

## Geolocation near the IP, not on a database pin

Matching geolocation does not mean answering with the IP's database coordinates. Six decimal places of a city centroid is a number that occurs in a lookup table and not on a street, and every profile behind one IP would share it. Mosaic places each profile within about 5 km of the IP's city, derived from the profile's own seed, so the same profile gets the same position every launch and two profiles do not share one.

The address WebRTC reports follows the IP too, and with a proxy attached the engine stops WebRTC from sending UDP around the proxy; the leak itself is explained in [WebRTC leak](https://mosaicbrowser.com/glossary/webrtc-leak). What the feature does in the window is on [IP matching](https://mosaicbrowser.com/features/exit-matching).

## Questions

### What has to match a proxy's country?

At least the timezone, the language the browser reports and sends in Accept-Language, the geolocation answer, and the address WebRTC reports. A site compares each of them with where your IP comes out.

### Why does Mosaic not change the language of a profile that has already run?

Accept-Language goes out with every request, so a site that has seen a profile speak German for a month notices when it switches to English. Mosaic reports the mismatch instead, and changes it only when you ask.

### What happens if the proxy cannot be reached when I create a profile?

The profile is still created with the proxy attached, and the response says the match did not happen and why. The editor offers the match again once a check succeeds.

### Does the match happen again later?

Yes, at every launch by default. Timezone and geolocation follow the IP whenever they disagree; the language follows only on a profile that has never run.

## Related

[Match browser timezone to proxy IPs, automatically](https://mosaicbrowser.com/features/exit-matching): No need to match browser timezone to proxy by hand: Mosaic sets each profile's timezone, language and location from the measured IP, before every launch.

[Browser timezone does not match IP: what it means and the fix](https://mosaicbrowser.com/guides/browser-timezone-does-not-match-ip): Browser timezone does not match IP? Your browser reads the computer's clock, and a proxy or VPN moves only the address. Match the zone to the IP.

[A profile in Austria claimed New York](https://mosaicbrowser.com/blog/austria-claimed-new-york): Browser location does not match IP: a no-proxy profile made in Austria claimed New York. One failed lookup was never retried, and a table filled the gap.

[A language is more than navigator.language](https://mosaicbrowser.com/blog/language-beyond-navigator): Accept-Language vs navigator.language: Chrome's --accept-lang moves both, but Intl formats stay on the system locale. One DevTools call moves the rest.

[WebRTC leak: when a page finds the address behind your proxy](https://mosaicbrowser.com/glossary/webrtc-leak): A WebRTC leak is a page learning your real IP address through WebRTC's STUN requests, which can go around a proxy or VPN instead of through it.







[When IP geolocation databases disagree about one address](https://mosaicbrowser.com/blog/ip-geolocation-databases-disagree): Lookups agree on the country more than 99% of the time and on the city far less. We match a profile's country and timezone, and keep its city loose.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
