Manage the IP allowlist
Allow your servers to use datacenter and ISP proxies without a password — list, add, replace and remove allowlisted IPv4 addresses and split connection limits between them.
The IP allowlist is the list of your own public IPv4 addresses that may connect to a proxy service without a login and password. This guide shows how to read and change it over REST and MCP, and how connection limits are shared between entries.
Reading needs services:read; changes need services:write.
export SERVICE_ID="00000000-0000-0000-0000-000000000000"
How the allowlist works
Every datacenter or ISP proxy IP accepts two kinds of connections:
- Login and password on the standard ports, from anywhere.
- No credentials on the allowlist ports, but only from IPs on the allowlist.
The ports come from endpoints[] in GET .../proxy/auth: port is the credential port and port_whitelist is the allowlist port.
Protocol (label) | Credential port | Allowlist port |
|---|---|---|
| SOCKS5 | 1080 | 1085 |
| HTTP | 8080 | 8085 |
| HTTPS (HTTP/2) | 8443 | 8444 |
| SOCKS4 | — | 1087 (allowlist only) |
| HTTP/2 (port 993, DPI bypass) | — | 993 (allowlist only) |
Entries marked noauth_only: true in endpoints[] work only through the allowlist. The HTTPS endpoints carry a hostname_template such as net-{ip_dashed}.mcccx.com; connect by that hostname because the TLS certificate is issued for it. See Connect to datacenter proxies for connection strings.
Every new composite order requires at least one allowlist IP (whitelist_ips), so a fresh service already has one entry.
Read the allowlist
curl "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/whitelist" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"
const response = await fetch(
`https://fineproxy.org/account_new/api/v1/customer/services/${process.env.SERVICE_ID}/proxy/whitelist`,
{ headers: { Authorization: `Bearer ${process.env.FINEPROXY_API_KEY}` } },
);
const allowlist = await response.json();
console.log(allowlist.entries, `${allowlist.used}/${allowlist.capacity} slots used`);
import os
import requests
response = requests.get(
f"https://fineproxy.org/account_new/api/v1/customer/services/{os.environ['SERVICE_ID']}/proxy/whitelist",
headers={"Authorization": f"Bearer {os.environ['FINEPROXY_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
allowlist = response.json()
print(allowlist["entries"], allowlist["used"], allowlist["capacity"])
{
"service_id": "00000000-0000-0000-0000-000000000000",
"entries": [
{ "ip_or_cidr": "203.0.113.10", "label": null, "conn_limit": 1500, "is_paid": false }
],
"conn_cap": 1500,
"capacity": 5,
"free_quota": 5,
"used": 1,
"paid_slots": 0
}
| Field | Meaning |
|---|---|
entries[].ip_or_cidr | The allowlisted IPv4 address. The name is historical: only single addresses are accepted. |
entries[].label | Optional label you set when adding. |
entries[].conn_limit | Concurrent connections this IP may open. |
entries[].is_paid | true if the entry occupies a paid slot. |
conn_cap | Total connection budget of the service, shared by all entries. |
capacity | Total slots: free_quota + paid_slots. |
free_quota | Slots included with the service (5). |
used | Slots in use. |
paid_slots | Extra slots bought with the extra_whitelist_ip add-on (100 cents per IP per month). |
conn_cap follows the package size: in the current pricing terms, services up to 800 IPs get a flat 1500 connections (conn_cap_tiers in GET /api/v1/billing/composite/pricing-info).
Reference: Get whitelist.
Add an IP
POST .../proxy/whitelist with ip_or_cidr (required), optional label and optional conn_limit.
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/whitelist" \
-H "Authorization: Bearer $FINEPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ip_or_cidr": "198.51.100.55", "label": "office"}'
const response = await fetch(
`https://fineproxy.org/account_new/api/v1/customer/services/${process.env.SERVICE_ID}/proxy/whitelist`,
{
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.FINEPROXY_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ ip_or_cidr: '198.51.100.55', label: 'office' }),
},
);
if (!response.ok) throw new Error(`Allowlist add failed ${response.status}: ${await response.text()}`);
console.log((await response.json()).entries);
response = requests.post(
f"https://fineproxy.org/account_new/api/v1/customer/services/{os.environ['SERVICE_ID']}/proxy/whitelist",
headers={"Authorization": f"Bearer {os.environ['FINEPROXY_API_KEY']}"},
json={"ip_or_cidr": "198.51.100.55", "label": "office"},
timeout=30,
)
response.raise_for_status()
print(response.json()["entries"])
The response is the whole updated allowlist. Notice that the connection budget was split between the two entries:
{
"service_id": "00000000-0000-0000-0000-000000000000",
"entries": [
{ "ip_or_cidr": "203.0.113.10", "label": null, "conn_limit": 750, "is_paid": false },
{ "ip_or_cidr": "198.51.100.55", "label": "office", "conn_limit": 750, "is_paid": false }
],
"conn_cap": 1500,
"capacity": 5,
"free_quota": 5,
"used": 2,
"paid_slots": 0
}
Validation errors are 422 with a plain detail string:
| Input | Response |
|---|---|
"not-an-ip" | {"detail":"Invalid IP address: 'not-an-ip'"} |
"198.51.100.0/24" | {"detail":"Only single IPv4 addresses are supported: '198.51.100.0/24'. CIDR subnets are not allowed."} |
An explicit /32 is accepted as a single address. When all slots are taken, buy an extra_whitelist_ip add-on (see Manage services) or replace an existing entry.
Reference: Add whitelist entry.
Replace an IP
When your server’s address changes, swap it atomically. The old IP leaves and the new one appears in one step, with no moment without an allowlisted IP, and no free slot is needed.
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/whitelist/replace" \
-H "Authorization: Bearer $FINEPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"old_ip_or_cidr": "198.51.100.55", "new_ip_or_cidr": "198.51.100.56"}'
The response is the updated allowlist; the new entry keeps the old entry’s conn_limit (750 in the example above). Only new_ip_or_cidr is validated as a single IPv4 address; old_ip_or_cidr must match an existing entry.
Reference: Replace whitelist entry.
Remove an IP
DELETE .../proxy/whitelist takes the address as the ip_or_cidr query parameter (not a JSON body).
curl -X DELETE "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/whitelist?ip_or_cidr=198.51.100.56" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"
After removal, the remaining entry got the full budget back (conn_limit: 1500, used: 1).
Note: The last allowlisted IP of a datacenter, ISP or personal proxy service cannot be removed. Use replace instead.
Reference: Remove whitelist entry.
Set connection limits per IP
By default conn_cap is divided evenly between entries. To give one server more connections than another, use the MCP tool update_whitelist_limits. It takes limits as an {ip_or_cidr: conn_limit} map. Each value must be at least 1 and the limits must add up to the service’s conn_cap; any other shape is rejected. Read conn_cap and the current entries with get_whitelist first.
{
"name": "update_whitelist_limits",
"arguments": {
"service_id": "00000000-0000-0000-0000-000000000000",
"limits": { "203.0.113.10": 1000, "198.51.100.56": 500 }
}
}
That object is the params of a JSON-RPC tools/call request to the MCP server. When you add an entry with REST, you can also pass conn_limit directly.
Find your current egress IP
The allowlist needs the public IP your traffic leaves from, not a LAN address. The MCP tool get_my_ip returns the address of the machine that called it:
{ "ip": "203.0.113.10", "family": "ipv4" }
Warning: When an AI agent calls
get_my_ip, you get the IP of the machine running the agent. That is not necessarily the server that will use the proxies. Confirm the address before adding it.
MCP equivalents
| Task | MCP tool | REST |
|---|---|---|
| Read | get_whitelist | GET .../proxy/whitelist |
| Add | add_whitelist_ip (ip, label) | POST .../proxy/whitelist |
| Replace | replace_whitelist_ip (old_ip, new_ip) | POST .../proxy/whitelist/replace |
| Remove | remove_whitelist_ip (ip) | DELETE .../proxy/whitelist?ip_or_cidr= |
| Per-IP connection limits | update_whitelist_limits | conn_limit when adding |
| Your egress IP | get_my_ip | — |
Note the argument names: MCP tools use ip, old_ip and new_ip, while REST uses ip_or_cidr, old_ip_or_cidr and new_ip_or_cidr.
Common pitfalls
- Sending
ipinstead ofip_or_cidrto the REST endpoint. Bodies reject unknown fields. - Using a CIDR range. Only single IPv4 addresses are accepted; add each address separately.
- Removing then adding to change an address. With all slots used, the add can fail and leave you without access; use replace.
- Connecting to a credential port from an allowlisted IP without a password. No-credential access works only on the allowlist ports (1085, 8085, 8444, 1087, 993).