UK sites on the eu gateway: latency from where your bot runs

2026-11-08 · Bazyl

After this post you can measure the first hop from wherever your bot runs to each of our gateways, pick the right one for a British site, and stop worrying about the part of the delay that no gateway choice changes. The usual mistake is picking the gateway by where the site is. You pick it by where the bot is.

There is no UK gateway. There are three: eu-, us- and ap-residential2.basilproxies.com, with one pool behind all of them. A British exit comes from -cc-gb on the username, whichever of the three you dial.

A request has two legs, and you choose one of them

Every request through a residential line travels two legs. The first runs from your machine to our gateway. The second runs from the gateway, out through a home connection in the country you asked for, to the site. The gateway you put in the string decides the first leg. The second leg is set by the exit and by the site.

So the job is narrow: make the first leg short. Here is the same login aimed at a British exit from three machines:

# bot on a PC in Leeds, or a server in Germany
eu-residential2.basilproxies.com:2115:USER-cc-gb:PASS

# bot on a server in Virginia
us-residential2.basilproxies.com:2115:USER-cc-gb:PASS

# bot on a server in Singapore
ap-residential2.basilproxies.com:2115:USER-cc-gb:PASS

Same account, same password, same exit country. Only the first hop moves.

Measure the first leg without a login

You can measure the handshake to each gateway without credentials. The gateway answers an unauthenticated CONNECT with 407, and curl records the TCP connect time before that answer arrives.

This prints five samples per gateway from the machine you run it on:

#!/usr/bin/env bash
# gateway-rtt.sh: TCP connect time to each gateway, five samples each, in ms.
for g in eu us ap; do
  printf '%s: ' "$g"
  for i in 1 2 3 4 5; do
    t=$(curl -s -o /dev/null -w '%{time_connect}' \
        -x "http://$g-residential2.basilproxies.com:2115" https://example.com)
    printf '%.0f ' "$(echo "$t * 1000" | bc)"
  done
  echo
done

On 1 October 2026 we ran the same measurement from a server in Falkenstein, Germany: eu- answered in 7 to 21 ms, us- in 113 to 148 ms and ap- in 167 to 200 ms.

That is one machine on one day. Run the script on the box your bot lives on, because that is the only first leg that matters to you.

Where your bot runs decides the gateway

The lowest number in that script's output is your gateway, and for most British setups the answer is short. Three made-up machines:

  • A home PC in Bristol running a desktop bot: eu-. It is the only gateway on the same side of the Atlantic.
  • A rented server in London or Amsterdam: eu-, same reason.
  • A rented server in New Jersey that a group shares for UK and US stores: us- for both. The UK store gets -cc-gb, the US one -cc-us, and the first leg stays short for every task.

What doesn't help is routing a US server's UK tasks through eu- because the site is British. That adds an Atlantic crossing to the first leg and changes nothing on the second, because the exit was British already.

Measure the whole trip with your login

The handshake is the part you control. To see the whole trip, time a real request through a British exit and compare the gateways side by side.

for g in eu us ap; do
  printf '%s: ' "$g"
  curl -s -o /dev/null -w '%{time_connect} connect, %{time_total} total\n' \
    -x "http://USER-cc-gb:PASS@$g-residential2.basilproxies.com:2115" \
    https://www.gov.uk/
done

The line is rotating (no -sess- token), so each run draws a different home connection and the totals wander from one run to the next. Run it a handful of times and compare the spread, not single numbers. The connect column will rank the gateways the same way every time. The rest belongs to the exit and the site.

A brand-new login can answer 407 or E53 login not ready yet, retry in a minute for its first minute or two while it reaches every gateway. If the script fails on a fresh login, wait and run it again before suspecting the string.

Narrow targeting doesn't shorten the trip

A -city-london token feels like it should make a London site faster. It narrows the exit to London; it doesn't touch the first leg, and the second leg runs over home broadband whose route to any given server is its own business.

What it does cost is supply. The gateway never falls back to a wider area: if no London exit is free at that moment, the answer is E20 no exit for this targeting, change it or retry. The docs list every token and every code. Use a city token when your setup needs the city, never as a latency setting. -cc-gb on its own draws from the whole country.

The 60-second idle close, and why the first request after a pause is slower

An idle tunnel closes after about 60 seconds of silence. The next request opens a fresh connection and pays the handshake to the gateway again, which is exactly the number the first script measured.

For a monitor polling every few seconds this never shows. For a task that waits several minutes between steps, the first request after the wait carries one extra handshake. On a sticky line that's all it costs: the -sess- id keeps the same exit across the reconnect, so a task on USER-cc-gb-sess-k4mz61pq-ttl-60 comes back out of the same British address.

This is one more reason the nearest gateway matters. A reconnect to a gateway 10 ms away is invisible. A reconnect across an ocean is not.

Check the result on the statistics page

The statistics page in the dashboard shows latency and success rate beside bandwidth and request charts, from 24 hours to 30 days, with a per-domain table of your top targets. After switching a server to its nearest gateway, compare the week before with the week after on the domains you care about. That is your before-and-after, on your own traffic.

We answer for the gateway being live and reachable and for the exit being in the country you asked for. The site's own response time is the site's.

Run the script above on your bot's machine, then build its first line on the residential product page with the gateway it picked.

Common questions

Is there a UK gateway?
No. There are three gateways, eu-, us- and ap-residential2.basilproxies.com, and one pool behind them. A British exit comes from the -cc-gb token on the username, through whichever gateway is nearest your machine. For a machine in the UK or Europe that is the eu gateway.
Can I measure gateway latency without a login?
Yes. The gateway answers an unauthenticated CONNECT with 407, and curl's time_connect still records how long the TCP handshake took. Run curl -s -o /dev/null -w '%{time_connect}' -x http://eu-residential2.basilproxies.com:2115 https://example.com a few times and read the numbers.
My bot runs in the US but the site is British. Which gateway?
The us gateway, with -cc-gb on the username. The gateway only sets the distance from your machine to us. The exit country is set by the token, so the British exit is the same whichever gateway you dial.
Why is the first request after a pause slower?
An idle tunnel closes after about 60 seconds of silence. The next request opens a new connection, which pays the handshake to the gateway again. A sticky session id keeps the same exit across that reconnect.