Skip to content

Guides · Sessions and traffic

What is a backconnect proxy?

A backconnect proxy gives you one gateway address instead of a list of servers. You always connect to the same host and port; the gateway chooses the exit from a pool for each connection or keeps it for a session. This guide explains the model, the rotation modes and how one Portproof credential selects pool, country and session.

By PortproofPublished Updated

Short answers

What is a backconnect proxy?

A proxy service where clients connect to one fixed gateway and the gateway forwards each connection through an exit chosen from a pool of devices. The address the website sees belongs to the exit, not to the gateway. It is also called a rotating gateway or rotating proxy endpoint.

Why is it called backconnect?

In many mobile and peer networks the exit devices sit behind NAT and cannot accept inbound connections. They keep an outbound connection to the network, and the gateway sends your traffic back along it. The client only ever sees the gateway address.

Does a backconnect proxy give a new IP on every request?

Not necessarily. Selection usually happens per connection, and HTTP clients reuse connections for several requests. A new connection can also be given the same public address again, especially on mobile carriers where many devices share addresses.

What is the difference between rotating and sticky sessions?

Rotating modes select an exit for each new connection or after a timed window. A sticky session asks the gateway to keep routing a named session through the same exit. A sticky session prefers an existing binding without reserving a device. The carrier may still change the IP of that device.

How do I choose the country on a backconnect proxy?

On most backconnect services, and on Portproof, the choice travels in the proxy username. Portproof puts the pool in the second position and the country code in the third, followed by session and rotation tokens.

How a backconnect gateway works

With a traditional proxy list, each host:port entry is a separate server with its own exit address, and your code decides which entry to use. A backconnect service turns that around. You configure one endpoint, and the selection of an exit happens on the gateway, according to the settings you send with the connection.

  1. Your client opens a connection to the gateway host and port, over HTTP CONNECT or SOCKS5.
  2. The gateway authenticates the username and password and reads the options carried in the username.
  3. It selects an exit device from the matching pool, or reuses the one bound to your session name.
  4. Your traffic leaves through that device. The destination sees the device’s public address.

A proxy list and a backconnect gateway are both forward proxies: your client chooses to send its requests through them. A reverse proxy is the opposite arrangement, run by a website in front of its own servers; the forward vs reverse proxy guide compares the two.

Mobile and peer devices usually sit behind NAT, and mobile carriers commonly use carrier-grade NAT. A device behind NAT can still keep an outbound connection open to the network, which is how the gateway reaches it. The CGNAT guide explains why carrier addresses are shared and why an exit address can change while the device stays the same.

Rotating and sticky sessions

Exit selection on a backconnect gateway
ModeWhen the exit is chosenSuits
Per connectionFor each new connection to the gatewayIndependent read-only checks that do not need to share a route
TimedOn a new connection after the chosen window has passedRelated checks grouped into a window of minutes
StickyOnce, then reused for the named session while the binding holdsA multi-step QA journey that should keep its route

Per-connection rotation does not mean per request. Browsers and HTTP libraries keep connections open and reuse them, so several requests can share one exit. If your job needs separate exits, open separate connections, and test the behaviour with the client that will run the job.

A sticky session prefers an existing binding without reserving a device. The carrier may still change the IP of that device. A session can also end when its device goes offline, so a sticky job needs a recovery step. The rotating vs sticky guide explains how to choose a mode and what each one guarantees.

One credential: pool, country and session in the username

Portproof works as a backconnect gateway. Every customer has one gateway username base and one proxy password. The full username adds the settings for the connection, so the same credential serves both pools, every available country and every rotation mode. Copy complete usernames from the connection builder; the setup docs list every token.

ACCOUNT is your gateway account username. Values are lower case and contain no hyphens. Use the saved SID the builder exports; do not invent one.

Username structuretext
ACCOUNT-<pool>-<country>-sid-<saved_id>-rot-<mode>

pool     mbl (mobile 4G/5G) · peer (residential peer network) · best
country  two-letter lower-case code, or any
sid      saved session identifier, needed for timed and sticky modes
rot      ondemand · auto5 · auto10 · auto20 · auto60 · sticky

http://<username>:<password>@gw.portproof.org:7000
socks5h://<username>:<password>@gw.portproof.org:7001
Example usernames for one credential
UsernameWhat it asks for
USERNAME-peer-nl-rot-ondemandResidential pool, Netherlands, a new exit selection for each connection
USERNAME-mbl-us-sid-SAVED_SID-rot-auto10Mobile 4G/5G pool, United States, re-selection on a new connection after 10 minutes
USERNAME-mbl-gb-sid-SAVED_SID-rot-stickyMobile 4G/5G pool, United Kingdom, keep the route bound to that saved session

The peer pool is the residential product: opt-in peer devices in a mixed network, so it does not enforce residential-only addresses. Optional tokens such as carrier, city, state, ASN and IP type narrow the selection further. A combination that matches no online device is refused with an error rather than silently widened, and a country with nothing online returns E_NO_STOCK_COUNTRY.

Choose a pool for the network your work needs: mobile proxies exit through carrier modems, residential proxies through opt-in peer devices. Both are shared pools on one GB balance; neither reserves an address for you. How the username is placed inside a proxy URL, and how to encode it, is covered in the proxy format guide.

Check the rotation you configured

Example output only: documentation-range addresses with the last octet masked, not exits of the pool. Enter the password at each prompt.

Two connections in per-connection modesh
for i in 1 2; do
  curl --disable --silent --show-error --noproxy '' --connect-timeout 5 --max-time 15 \
    -x "http://gw.portproof.org:7000" --proxy-user "USERNAME-peer-nl-rot-ondemand" \
    https://api.portproof.org/v1/echo-ip
  echo
done

# example
#   203.0.113.x
#   198.51.100.x

Two separate curl runs open two connections, so each gets its own selection. Equal addresses are possible and do not prove that rotation failed. The curl guide shows the same checks for sticky sessions and explains what a check costs in traffic.

When a backconnect proxy fits

  • Price monitoring and market research that read many public pages and do not need one fixed route.
  • Ad verification and QA checks that must see a page from a chosen country or network type.
  • Data pipelines and AI agents that prefer one endpoint and credential over managing a server list.
  • Multi-step QA journeys that need a sticky session for their duration, with a recovery step if it ends.

A backconnect gateway is the wrong tool when a job needs one address that never changes, such as an allow-list entry on a partner system. Shared pools do not provide that. Measure a representative run against the account meter before scaling, and size the balance with the GB planning guide.

Price per GB by order size, EUR
Order sizePer GB
1 to 4 GBEUR 1.99
5 to 24 GBEUR 1.79−10 %
25 to 49 GBEUR 1.49−25 %
50 to 99 GBEUR 1.29−35 %
100 to 249 GBEUR 1.09−45 %
250 GB and moreEUR 0.89−55 %

GB never expire. What you buy stays on your balance until you use it; a new purchase adds to the same balance. The trial is 1 GB for EUR 1.49, once per customer. Cryptocurrency network minimums and fees vary.

One balance covers both pools at the same per-GB rate.

What is not allowed

Use the gateway for lawful work such as price monitoring, ad verification, market research and QA, within each site’s terms. Account farming, credential stuffing and ignoring a site’s rate limits are refused. See the acceptable-use policy.

Buy mobile and residential proxy GB

Choose your GB or reserve a mobile device.

Buy pool GB Try 1 GB for EUR 1.49

Once per customer. Cryptocurrency network minimums and fees vary.