First, find out which part makes the request
Code in the browser uses the visitor’s connection. A Vercel Function uses Vercel’s network. A build step that fetches data uses the build network. An allowlist only helps the path that actually opens the connection, so start with the request that fails.
Then ask the API or database owner two things: do they accept one IPv4, a list, or ranges? And is your code making an HTTPS request or opening a native database connection? For HTTPS you can change one HTTP client. A database driver needs a different approach (see the FAQ).
Your options
- Vercel Static IPs (Pro and Enterprise): managed outbound IPs for your functions in up to three regions. As of November 2026 it costs $100 per project per month on Pro, plus private data transfer. Each region gets two IPs from a shared pool, so other Vercel customers can use the same addresses.
- Vercel Secure Compute (Enterprise): dedicated infrastructure and IPs with network isolation, custom pricing. Worth a conversation if you also need VPC peering.
- An HTTPS proxy with a static IP: send only the requests that need the fixed IP through your own server. Good when one partner wants one address and you control the HTTP client. It adds a hop and a credential to manage. Run your own VPS or use a provider such as MazeVPN.
Option 1: turn on Vercel Static IPs
- Open the project, click Settings at the bottom of the sidebar, then Networking. Turn on Advanced Networking.
Settings → Networking. Turning on Advanced Networking leads to Static IPs (billed per project). - Click Static IPs, then Configure Regions, pick up to three regions close to the service you call, and save. Billing for Static IPs starts here, so we stopped before this step; the labels are from Vercel’s docs. You should see: two IP addresses for each region you picked.
- Send all of the addresses to the service owner and wait until they are allowlisted. Keep the old entries for now.
- Redeploy the project. If builds also call the allowlisted service, open Static IPs → Manage and turn on Use for builds (it is off by default).
Option 2: send selected requests through your own static IP
Only the calls that get the proxy dispatcher leave from your static IP. Everything else in your app keeps Vercel’s normal network.
- Log in to the client area, open My Services and click your server. Scroll to Use your IP from code, n8n, CI or a browser. Under Add a proxy user, type
verceland click Add.
You should see: a new card namedapp-vercel. Names can use letters and digits only, and MazeVPN adds theapp-prefix. - On that card, click Copy next to HTTPS proxy (marked Encrypted). The copied URL contains the password, so paste it only into a secret or environment variable, never into code.
The card of a new proxy user. The eye icon shows the password; Copy copies the full URL with the password. (Server IP replaced with an example.) You should see: a URL likehttps://app-vercel:…@203.0.113.42:443, where the address is your server’s IP. - In Vercel, open the project and click Environment Variables in the sidebar, then Add Environment Variable.
- Keep the type Secret, enter
MAZE_PROXY_URLas the Key, paste the URL as the Value, choose the Environments (for a first test, Preview only) and click Save.
Secret is the default type; the value cannot be shown again after saving. You should see:MAZE_PROXY_URLin the list. As a secret, its value cannot be shown again. - Install undici in the project:
npm install undici. Put this helper in server-only code (for examplelib/partner.js). Replace the URL with an endpoint you are allowed to call.import net from 'node:net'; import tls from 'node:tls'; import { fetch, ProxyAgent } from 'undici'; // For an HTTPS proxy addressed by IP, undici sends the IP as the TLS server name // and Node rejects it. Send a placeholder name and verify the certificate against the IP. function proxyAgent(proxyUrl) { const { protocol, hostname } = new URL(proxyUrl); if (protocol !== 'https:' || !net.isIP(hostname)) return new ProxyAgent(proxyUrl); return new ProxyAgent({ uri: proxyUrl, proxyTls: { servername: 'proxy.invalid', checkServerIdentity: (_name, cert) => tls.checkServerIdentity(hostname, cert), }, }); } let dispatcher; export async function fetchPartnerStatus() { if (!process.env.MAZE_PROXY_URL) throw new Error('MAZE_PROXY_URL is required'); dispatcher ??= proxyAgent(process.env.MAZE_PROXY_URL); const response = await fetch('https://api.example.com/status', { dispatcher, signal: AbortSignal.timeout(10_000), }); if (!response.ok) throw new Error('Partner status: ' + response.status); return response.json(); } - Redeploy: open Deployments, click the … menu of the latest deployment and choose Redeploy (or push a new commit). Vercel does not apply changed environment variables to existing deployments.
Deployments → the … menu of the latest deployment → Redeploy. You should see: a new deployment with status Ready.
Test before you change the allowlist
- In a protected preview deployment, add a temporary function that calls
https://ifconfig.me/ipwith the same dispatcher and returns the text. Open it once.You should see: your server’s IP (the Host shown in the client area), not a Vercel address. - Ask the partner to allowlist that single IPv4, then make one real read-only call through the dispatcher. You should see: a normal response instead of a 403 or timeout.
- Delete the temporary function, test every region and environment you use, and only then remove old allowlist entries.
Official references
- Vercel Static IPs
- Vercel Secure Compute
- Managing Vercel environment variables
- Node.js Undici ProxyAgent
Skip the setup
A dedicated IPv4 in 38 cities, usually ready about 3 minutes after payment. Connect devices with WireGuard and apps with an authenticated HTTPS, HTTP, or SOCKS5 proxy. From $9.99/month.