Skip to content

Updated

Camoufox Proxy:
Set Up geoip, Timezone and Locale

  1. In Camoufox you give the proxy as a Playwright-style dict (server, username, password) and turn on geoip=True.
  2. According to the Camoufox docs, geoip looks up the exit IP through the proxy and sets longitude, latitude, timezone, country, locale and the WebRTC IP to match it.
  3. Use an HTTP line (port 2222 on Proxy302) as the default, run the 10-line check below, and only then log in anywhere.

Check it right after buyingExample output

curl -x http://USER:PASS@HOST:PORT https://ipinfo.io/json

ip
203.0.113.24
country
US
Matches the country you picked
Day 15
203.0.113.24
Same address for the whole term
Example addresses (203.0.113.0/24), not real exits
01 / 09What the three settings do

Pass the proxy and geoip=True together, then verify the IP, time zone and language the page actually sees.

What the three settings do

Camoufox is a Firefox-based browser you drive through the Playwright API. Three arguments matter for a proxy: proxy, which sends traffic through your IP; geoip, which reads that IP's location and sets the matching timezone, country, locale and WebRTC address; and locale, which you only set by hand when you want a language other than the one geoip picks.

The Camoufox docs say to pair a proxy with geoip=True so the identity's location matches the proxy; a proxy without geoip prints a warning. Without a proxy, geoip=True looks up your own address instead.

Set it up in four steps

  1. Step 1: get a proxy and copy its details

    In Proxy302, buy the IP or traffic you need, open My proxies, and copy HOST, PORT, USERNAME and PASSWORD. Pick HTTP unless you have a reason to use SOCKS5: on Proxy302 HTTP is port 2222 and SOCKS5 is port 3333.

  2. Step 2: install Camoufox with the geoip extra

    Run pip install -U "camoufox[geoip]" and then camoufox fetch, as the project README shows. The docs site also describes a pre-release install line for newer versions, so compare with the current camoufox.com page.

  3. Step 3: launch with proxy and geoip together

    Use the code below. Replace HOST, LOGIN and PASSWORD with your values.

  4. Step 4: verify before you log in

    The script prints the exit IP and country, the time zone and the language list that the page sees. All three should fit the country of the IP.

Camoufox with a Proxy302 HTTP proxy and geoip

from camoufox.sync_api import Camoufox

PROXY = {
    "server": "http://HOST:2222",   # HTTP line; the SOCKS5 line is port 3333
    "username": "LOGIN",
    "password": "PASSWORD",
}

with Camoufox(proxy=PROXY, geoip=True) as browser:
    page = browser.new_page()
    page.goto("https://ipinfo.io/json")
    print(page.inner_text("body"))                      # exit IP, country, org
    print(page.evaluate("Intl.DateTimeFormat().resolvedOptions().timeZone"))
    print(page.evaluate("navigator.languages"))

Example only, based on the Camoufox and Playwright docs; replace HOST, LOGIN and PASSWORD with your own values.

HTTP or SOCKS5

The Camoufox docs list SOCKS5 with a username and password as supported, so you can use "server": "socks5://HOST:3333" with the same login. Proxy302 rotating residential works over both protocols with one username and password; a per-IP lease is issued with the protocol you chose at purchase and shown in My proxies.

If a SOCKS5 line fails while an HTTP line works, switch to HTTP first and look into the cause afterwards. For who resolves the hostname, see the socks5h guide.

Which Proxy302 line fits a Camoufox script

Which Proxy302 line fits a Camoufox script
ItemPriceExit behaviorFits when
Rotating residential, Budget lineUS$1.50 per GBNew IP on every new connection unless you open a sessionScraping and checks where each request may come from a different IP
Rotating residential, Premium lineUS$5 per GBCountry, state or city targeting; the line the console recommends for strict platformsWork that is sensitive to IP type
Static ISP, per IPFrom US$0.50 for 1 day, US$7.99 for 30 daysSame IP for the whole lease; HTTP or SOCKS5 chosen at purchaseA profile that logs in to the same account again and again
Rotating datacenterUS$0.40 per GBUS exits only; new IP on every connection by defaultHigh-volume jobs where a datacenter IP is acceptable

Source: Proxy302 product facts (6 December 2026). Countries and stock for static ISP are shown on the order page.

Rotating exits and geoip

geoip reads the exit IP when the browser starts. If the proxy gives a new IP on every connection, the address that was looked up may not be the one used a minute later. Country targeting keeps the country, but details that depend on the exact place, such as the time zone in a country with several, can drift.

For a profile that should look like one steady place, a static ISP IP is the simpler match. For scraping where every request stands alone, rotation is fine.

When the exit and the browser disagree

The script prints a proxy or timeout error

Check Host, port and protocol: HTTP is 2222, SOCKS5 is 3333. Test the same login with curl before blaming the browser.

Fix Copy the values again from My proxies. Use an http:// server for the first test.

Stop when If curl also fails, the problem is the line or the login, not Camoufox. Open a Support ticket with the order number.

Time zone or language does not fit the IP country

Check Whether geoip=True is set, and whether you also passed a locale by hand that overrides it.

Fix Remove the manual locale for the first test; set it only if you need another language.

geoip warns or finds the wrong place

Check The IP databases disagree with each other, and geoip uses one of them.

Fix Look the IP up in two other tools and trust the pattern, not one answer. See the IP check guide.

Stop when Do not keep fixing a one-city mismatch if the country is right and the site works.

IP is right but WebRTC shows another address

Check Open a WebRTC test page inside the same Camoufox window.

Fix Keep geoip=True, restart the browser, and test again. Read the WebRTC guide for how to interpret the lines.

FAQ

Does Camoufox need a proxy?

No. Without a proxy it uses your own connection, and geoip=True then looks up your own address. For an account tied to another country you need a proxy that exits there.

Is geoip=True enough to align everything?

The docs say it sets timezone, country, locale and the WebRTC IP from the exit IP. Read the result back with the script above; you decide whether it fits, a setting does not guarantee it.

Should I pass a locale myself?

Only if you want a language other than the one geoip chooses. Keep the first language in the list consistent with the country you are presenting.

Which Proxy302 product should I start with?

For one profile that logs in to the same account, start with a static ISP IP, from US$0.50 for 1 day. For scraping with many independent requests, use rotating residential, from US$1.50 per GB.

Is there a free trial to test it?

No. The smallest purchases are 1 GB of rotating residential traffic or one IP for one day.

Further reading

Setup guides Proxy302 publishes on GitHub on the same topic:

Reference links

6
  1. Camoufox documentation: Python usage and geoip

    Official documentation · Confirmed on:

    Read 6 December 2026: the proxy argument takes the Playwright format (server, username, password); geoip=True works out longitude, latitude, timezone, country and locale from the exit IP and spoofs the WebRTC IP; a proxy given without geoip triggers a warning; SOCKS5 with username and password is listed as supported.

  2. Camoufox README (GitHub)

    Official documentation · Confirmed on:

    Read 6 December 2026: Camoufox is a Firefox-based build that works through the Playwright API; with a proxy you pass proxy and geoip=True so timezone, locale, geolocation and WebRTC IP follow the exit IP; install is pip install -U "camoufox[geoip]" followed by camoufox fetch.

  3. Playwright: network, HTTP proxy

    Official documentation · Confirmed on:

    Read 6 December 2026: a proxy is passed as a dict with server, username and password; it can also be set per browser context.

  4. MDN: Intl.DateTimeFormat resolvedOptions

    Official documentation · Confirmed on:

    Read 6 December 2026: Intl.DateTimeFormat().resolvedOptions().timeZone returns the IANA time zone the page sees.

  5. MDN: Navigator.languages

    Official documentation · Confirmed on:

    Read 6 December 2026: navigator.languages is the ordered list of preferred languages; the Accept-Language header usually lists the same locales.

  6. Proxy302 product facts and price list

    Product observation · Confirmed on:

    Product facts file of the site, read 6 December 2026: per-IP prices and lease terms, per-GB prices, protocols and ports (HTTP 2222, SOCKS5 3333), countries listed per product, no free trial.

Ready to try it?

Create an account, top up once, then pick rotating residential, static ISP or datacenter IPs and have one running in your browser within minutes.