How Many Mobile Proxy Ports Do You Need? A Capacity Worksheet
Port count should come from your workload, not from a rule of thumb. This guide turns request rate, connection time, IP changes and session isolation into a provisional number of dedicated ports, using values you measure on one port first. The worksheet below keeps every measured value, assumption and derived figure on its own labelled row.
Quick Answer
Measure how many parallel requests one port carries reliably for your job, then divide your required concurrency by that number. Adjust for IP-change downtime and headroom, compare the result with the number of identities that must not share an IP, take the larger, and test it before a long rental.
- →Required concurrency = requests per second x seconds each request holds a connection
- →Per-port capacity is something you measure, never a number you assume
- →A target-side rate limit tied to an account or key is not solved by adding ports
Each port we rent is one physical 4G/5G modem with its own SIM on a mobile carrier network, assigned to one customer for the rental. That makes sizing a real question: you are deciding how many separate modems your job needs. This page covers only that workload-to-port arithmetic. How many accounts can share one IP is covered in accounts per mobile proxy, bandwidth by use case and billing models in the mobile proxy pricing guide, and fleet architecture, recovery and monitoring in planning a private device network.
1. Define the workload in four numbers
Write these down before you test anything. Every later step depends on them.
Requests at peak
How many requests per minute the job must finish in its busiest window, not the daily average.
Payload size
Average response size in bytes. Full pages and small JSON responses behave very differently.
Connection hold time
How long one request keeps a connection busy, from connect to last byte. This drives concurrency.
Session duration and isolation
How long one identity needs a stable IP, and which identities must never share one.
The link between the first and third numbers is the core of the sizing. If work arrives at a steady rate and each request holds a connection for a known time, the average number of requests in flight equals the arrival rate multiplied by the time in the system. That relationship is Little's law. The law uses the mean time; substituting your p90 hold time is a deliberately conservative choice, because peaks are when you run short.
2. Measure one port with a controlled, low-rate benchmark
Per-port capacity depends on your target, your client, the response size and the carrier network at the time of the test, so nobody can hand you a fixed figure. Test against an endpoint you own or have permission to load, at a rate inside its published limits. Step concurrency up slowly and pause between steps. The script below is an example, not output from our systems. Credentials come from environment variables, and TLS verification stays on.
# Example only. Set these in your shell, never inline in scripts:
# PROXY_URL e.g. http://203.0.113.10:8080 (host:port from your dashboard)
# PROXY_AUTH user:password for the port
# TARGET_URL an endpoint you own or are allowed to test
for c in 1 2 4 8; do
seq 1 40 | xargs -P "$c" -I{} curl -s -o /dev/null \
-x "$PROXY_URL" -U "$PROXY_AUTH" --max-time 30 \
-w "%{exitcode} %{http_code} %{size_download} %{time_total}\n" \
"$TARGET_URL" > "step-$c.txt"
sleep 60
doneEach line records curl's exit code, the HTTP status, the bytes downloaded and the total time in seconds (the exitcode, http_code, size_download and time_total write-out variables; exitcode needs curl 7.75.0 or later). With 40 samples per step, the sorted 20th and 36th values are close to the median and p90:
# p50 and p90 of total time for one step
awk '{print $4}' step-4.txt | sort -n | sed -n '20p;36p'
# connection-level failures (non-zero exit code)
awk '$1 != 0' step-4.txt | wc -l
# responses that arrived but were not 2xx
awk '$1 == 0 && ($2 < 200 || $2 > 299)' step-4.txt | wc -lKeep the two failure counts separate. A non-zero exit code means curl did not complete the transfer (for example a timeout or a refused connection). A 403 or 429 means the port worked and the target answered with a refusal, and a 407 means the proxy rejected your credentials. Only the first kind can point to a capacity limit on the port side.
3. Account for IP changes and headroom
You can request a new IP from the dashboard or the API. GET /api/v1/proxies lists your ports and POST /api/v1/proxies/{slotId}/switch asks for a change, at most once per 5 minutes per port. A sooner request returns 429 with a Retry-After header. Adding ?type=ip renews the address on the same modem. The carrier assigns the address, so a new IP is not certain, and a carrier may share one public IP between several subscribers (CGNAT).
# Example only. MP_API_KEY and SLOT_ID come from the environment.
curl -s -X POST -H "Authorization: Bearer $MP_API_KEY" \
"https://buy.mobileproxies.org/api/v1/proxies/$SLOT_ID/switch?type=ip"For sizing, treat each change as a window when that port should receive no new work. Measure the window yourself: stop sending to the port, request the change, and poll a neutral IP-echo endpoint until it answers again, noting whether the address changed. Multiply the planned changes per hour (row E, never more than 12) by the measured seconds (row F) to get the share of each hour you lose. If you rotate rarely, this row is close to zero. Rotation strategy itself is covered in IP rotation best practices.
Headroom (row H) absorbs bursts, retries and the run-to-run spread you recorded. Spare ports (row K) are a separate decision. A spare lets you move work when one port misbehaves, but only if your scheduler can actually use it, and no number of spare devices adds up to an uptime guarantee. Do not plan on unlimited concurrency per port either: if your measured stable step is 4, plan with 4.
4. The capacity worksheet
Fill in the rows in order. "Measured" rows come from your benchmark, "Assumption" rows are your own choices, and "Derived" rows are arithmetic. Row N does not change the port count. It shows how much data each port would move, which is useful when you compare billing models.
| Row | Input | Source | Formula or origin |
|---|---|---|---|
| A | Peak requests per minute your job must complete | Requirement | From your schedule or queue size |
| B | Time one request holds a connection, seconds (use the p90 value) | Measured | Benchmark on one port |
| C | Required concurrency | Derived | C = (A / 60) x B |
| D | Stable concurrency on one port | Measured | Highest step that met your acceptance limits |
| E | Planned IP changes per port per hour (at most 12) | Assumption | Your rotation policy |
| F | Seconds a port is unusable around one IP change | Measured | Timed in your own test |
| G | Usable fraction of each hour | Derived | G = 1 - (E x F / 3600) |
| H | Headroom multiplier for bursts and retries | Assumption | Your choice, for example 1.25 |
| I | Ports needed for throughput | Derived | I = roundup(C x H / (D x G)) |
| J | Identities that must not share an IP | Requirement | From your account plan |
| K | Spare ports you choose to hold back | Assumption | 0 or more; not an uptime promise |
| L | Provisional port count to test | Derived | L = max(I, J) + K |
| M | Average response size, bytes | Measured | size_download from the benchmark |
| N | Data per port per hour, MB (sanity check only) | Derived | N = A x 60 x M / L / 1,000,000 |
Two worked examples
The inputs below are illustrative, chosen to show the arithmetic. They are not measurements of any port. Replace every one with your own values.
Example 1: price checks on an API you are allowed to query
- A = 300 requests per minute, B = 2 s, so C = 5 x 2 = 10
- D = 3 (illustrative), E = 2, F = 30 s (illustrative), so G = 1 - 60/3600 ≈ 0.983
- H = 1.25, so I = roundup(10 x 1.25 / (3 x 0.983)) = roundup(4.24) = 5
- J = 1 (no identity rules), K = 0, so L = 5 ports
Example 2: long browser sessions for separate profiles
- A = 40 requests per minute, B = 6 s, so C = (40 / 60) x 6 = 4
- D = 4 (illustrative), E = 0, so G = 1
- H = 1.25, so I = roundup(4 x 1.25 / 4) = roundup(1.25) = 2
- J = 6 profiles that must not share an IP, K = 1, so L = 7 ports
The second example shows why throughput is only half the answer. Isolation decided the count, and the extra throughput capacity is simply unused. At current one-time prices, seven US ports for 30 days would be 7 x EUR 107 = EUR 749, and five UK or Netherlands ports for 7 days would be 5 x EUR 44 = EUR 220. To compare those totals with other billing models, use the proxy cost calculator or see all plans on the pricing page.
5. Test the provisional count
Row L is a hypothesis. Confirm it in two stages before committing to longer plans:
- Rent one port on the EUR 5 plan (10 hours) and run the step benchmark to fill in rows B, D, F and M.
- Run the full provisional count at your real peak rate for a short window, with the same acceptance limits.
- If p90 time or connection failures break your limits, lower D in the worksheet and recompute. If every port sits well under its stable step, you may be oversized.
- Choose 7-day or 30-day plans per port only after the count holds. Plans are one-time and do not auto-renew, so renew the ports you keep.
When the workload changes, rerun the same steps instead of guessing from the last result.
6. When more ports will not solve the problem
The 429 status means the client "has sent too many requests in a given amount of time", and the server may include a Retry-After header saying how long to wait (RFC 6585). If your benchmark shows 429s from the target, check what the limit is attached to before buying capacity:
More ports do not help
The limit is per account, API key, session token or a global quota. Every port shares the same budget, so adding IPs changes nothing except the bill.
Fix the request pattern instead
Honor Retry-After, add backoff, cache repeat requests, and slow the job to the documented rate. For more volume, ask the site for a higher quota or use its official API.
Spreading traffic across IPs to get around a limit a site has set can conflict with its terms and is not a sizing strategy. Size ports for your own concurrency and isolation needs, within the limits each target allows.
Frequently asked questions
How many mobile proxy ports do I need?
Take the larger of two numbers: the ports your throughput needs and the identities that must not share an IP. Throughput ports are required concurrency (peak requests per second times the p90 time a request holds a connection) multiplied by a headroom factor, divided by the stable concurrency you measured on one port and by the usable fraction of each hour after IP changes. Round up, then test that count.
How many concurrent connections can one mobile proxy port handle?
There is no universal figure. It depends on your target, payload size, client and the carrier at that moment. Measure it: step concurrency up on one port against an endpoint you are allowed to test and record the highest step where errors and response times stayed inside your own limits.
Does rotating the IP reduce capacity?
It can. An IP change is a window when that port should not receive new work, and the API allows at most one change per port every 5 minutes, returning 429 with Retry-After if you ask sooner. Time the window in your own test and subtract it in the worksheet.
Will more ports fix a 429 from the target site?
Not when the limit is tied to an account, API key or session, or when it is a global quota. More IPs do not change those. Honor the Retry-After header, slow the job down, or ask the site for a higher quota or an official API.
How should I test a port count before a long rental?
Rent one port on the EUR 5 plan, which runs for 10 hours, and benchmark it. Then run the provisional count at your real request rate for a short period before choosing 7-day or 30-day plans. Plans do not auto-renew.
Sources & references
Related guides
Validate one port against your workload
Before sizing the purchase, run the benchmark on one dedicated 4G/5G port in the United States, United Kingdom or Netherlands. The EUR 5 plan gives you 10 hours on one port, over HTTP or SOCKS5.