Several sites can call an API, but the allowlist keeps rejecting requests or the logs show an unexpected address.
Fastest fix: Don’t assign a separate egress IP to every site by default. First confirm whether the API requires a fixed public source IP, then verify the address the API actually sees and whether each application can bind to a distinct source address.
This guide is for site owners managing several websites that call external APIs, and technical leads responsible for payment, ERP, or SaaS integrations.
It also helps operations teams decide whether a multi-IP server needs separate outbound addresses or simply a clearer allowlist record.
Separate the API source IP from the server’s other addresses
A server can have several addresses with different roles. Confusing them is a common cause of failed API allowlists.
| Address type | What it means | Is it normally the API allowlist value? |
|---|---|---|
| Inbound destination address | The public address that clients use to reach a site or service hosted on the server | Not necessarily. This is the destination for incoming connections. |
| Outbound source address | The public source address the API sees when the server sends a request | Yes, if the API provider asks for a source-IP allowlist. Verify it from the actual application environment. |
| DNS record | A name-to-address mapping used to locate a host or service | No. DNS resolution alone does not establish which source address an outbound connection will use. |
The distinction follows how networking works: a DNS record maps a name to an address, as described in RFC 1034. It does not prove which local address or route an application uses for an outgoing request.
Does a website’s outbound IP match the IP in its DNS record? Not as a rule. A DNS record may point visitors to the server’s inbound address, while an API request leaves through a source address selected by the application and network routing. Treat them as separate facts until a live request confirms the API-visible address.
Start with the API provider’s own documentation and account settings. Record whether its allowlist accepts one fixed source address, multiple addresses, or another form of authentication. Do not infer the requirement from a support forum or from the fact that an integration happens to work from a developer’s workstation.
Shared egress or separate addresses: compare the operational trade-offs
A shared source address is usually easier to operate when several sites call the same API and the provider accepts one address. Separate addresses can make records easier to attribute, but only if the application and network configuration actually select them.
| Approach | Advantages | Costs and failure modes | Best fit |
|---|---|---|---|
| Shared egress | One address to verify and maintain; less application and route configuration | A changed address affects every integration using it; logs may need extra application-level detail to identify the caller | The API accepts a shared fixed source address and teams can track requests by application |
| Separate address per application | Easier to associate an API request with a business or integration; an address can be removed from one allowlist without changing others | Requires reliable source binding and route behavior; additional addresses do not automatically create application-level separation | The API or internal operations process requires distinct, verifiable sources |
| Pause and confirm with the API provider | Avoids building around an assumed requirement; can clarify whether several approved sources are allowed | Adds a provider-confirmation step before a final network design | The documentation is unclear or the allowlist behavior does not match observed requests |
If several websites call the same API, will they use the same egress IP? If they run on the same server and use the same default route and source-address selection, they will commonly leave through the same public address. That is not guaranteed: an application can bind to a local address, or policy routing can select a different route. Verify the actual request instead of assuming that every process shares an exit.
Separate addresses are not a substitute for access controls. They do not isolate site files, PHP processes, credentials, or database permissions, and they do not prove which user or application made a request. Keep application-level authentication and permissions in place even when each integration has its own address.
Verify the address the API actually receives
A DNS lookup or an inbound connection test does not establish the source IP of an API call. The evidence needs to come from the server or application environment that makes the request, ideally paired with a record from the API provider or an endpoint under your control that reports the peer address.
Step 1: Read the API allowlist requirement
Find the provider’s official documentation and the allowlist settings in the relevant account. Note whether it expects a fixed public source address, whether it allows more than one, and which environment the rule applies to, such as production or testing. Keep the provider’s wording or a dated internal note with the integration record.
If the documentation does not say whether it checks the request’s source address, ask the provider before changing server networking. A rule for incoming webhooks, for example, may describe addresses that send requests to your server rather than the address your server uses when calling the API.
Step 2: Check the server address and route
On Linux, inspect addresses assigned to interfaces with ip address. The ip-address manual documents address inspection and management. Then inspect the route the host would select for the API destination with ip route get <API-destination>; see the ip-route manual.
These checks help identify the local source address and route selected by the host. They do not, by themselves, prove which public address the remote API sees. A network can apply address translation beyond the server, and an application can use a different interface or local address from the one assumed during a host-level check.
Step 3: Test from the same application context
Run a harmless, authorized request from the environment that runs the integration: the same host, container, service account, and network namespace where practical. Use a provider-approved test endpoint or a controlled endpoint that records the connecting peer address. Do not send test traffic to an API or system without authorization.
For a direct curl test, the command can request a particular local address or interface:
curl --interface <local-address-or-interface> https://<authorized-test-endpoint>
The curl manual documents the --interface option. For applications using libcurl, its CURLOPT_INTERFACE documentation describes selecting an interface or local address, and the official interface example shows the option in use.
Selecting a local interface or address is not proof of the public source address. Confirm the result in the remote endpoint’s logs or in the API provider’s request records. If the test uses a different container, runtime, or network namespace from the real integration, repeat it in the real application context.
A useful record can use placeholders rather than assumptions:
Application: <integration name>
Test time: <timestamp with timezone>
Selected local address or interface: <value>
Remote-observed source address: <value>
API environment: <test or production>
Evidence: <provider log, controlled endpoint log, or response record>
Save the response or relevant log excerpt with the request time. If the provider reports a different source address from the one expected, check the application binding and route before adding more addresses.
Important: Assigning an extra address to a server does not make applications use it automatically. The address must be configured and reachable, and the application or network policy must select it for the relevant traffic.
Check application binding before planning per-site egress
An application can request a local address or interface, but the request only works if the address exists in the application’s network environment and the route can carry the connection. The libcurl interface option documents this capability; it does not establish how a particular server provider configures additional public addresses.
On a Linux host, use the route lookup and address inspection together. Where policy routing is in use, review the applicable rules: the ip rule manual describes rules that select routing behavior based on conditions such as source addresses. This is a reason to verify both the selected source and the route, not to assume that adding an address alone will create a working, application-specific path.
For persistent configuration, follow the system’s network manager and distribution documentation. The NetworkManager keyfile reference and the systemd.network manual describe configuration mechanisms. The right method depends on the operating system and network setup. We do not recommend pasting generic policy-routing commands into production without checking the actual interface names, address assignment, and routing behavior first.
Can different websites on one server use different egress IPs? They can when their runtime and network configuration support dependable source selection and the selected addresses have usable routes. The application might need to bind a socket to a local address, or the host might use policy routing. If the integration cannot select an address and the routing setup does not distinguish its traffic, extra addresses alone will not produce a separate API-visible source.
Decide from evidence, then keep the mapping current
Use the following comparison before asking for more addresses or changing routing:
| Requirement or finding | Evidence to collect | Next step |
|---|---|---|
| API does not require a fixed source address | Provider documentation or account settings | Keep the current design unless another operational need requires separation |
| API requires a fixed source address | Allowlist instructions and a remote-observed request address | Register the verified source address |
| API requires different sources by business or integration | Provider requirement plus application and route tests | Confirm the application can bind consistently before planning separate addresses |
| Host has extra addresses, but no application-level proof | Address and route inspection only | Do not treat this as working per-application egress; test from the actual runtime |
| API records show an unexpected address | Provider logs or a controlled endpoint’s connection record | Check the runtime, source binding, route selection, and any upstream address translation |
A compact decision rule is enough for most deployments: if the API accepts one verified fixed source and teams can identify calls in application logs, share the egress address. If a provider requires distinct sources, or the operations team cannot meet its allowlist requirements with a shared address, evaluate per-application binding and routing. If either requirement or capability is uncertain, pause and confirm before making an address purchase or production change.
Which address should go on a third-party API allowlist? Use the public source address observed by that API when the server makes an authorized request. Do not substitute the site’s DNS record or the server’s inbound destination address unless the API provider explicitly asks for that address type.
Check the integration before changing production
- [ ] Read the API’s official allowlist instructions and account settings.
- [ ] Record whether it requires a fixed source address and whether multiple sources are accepted.
- [ ] Identify the exact host, container, or service that sends the request.
- [ ] Inspect the local addresses and route from that runtime.
- [ ] Send an authorized test request and save the remote-observed source address with its timestamp.
- [ ] If separate egress is required, test application binding and routing before changing the provider’s allowlist.
- [ ] Record the mapping between each integration, its observed source, the relevant API account, and the team responsible for updates.
- [ ] Repeat the verification after a network, application, or address change.
This record reduces avoidable troubleshooting. When a provider rejects requests after a change, the team can compare the newly observed source address with the saved allowlist entry and identify whether the change came from the application, the route, or the provider’s account configuration.
An address change also creates work beyond editing a server configuration. Update each affected API allowlist, record which sites depend on it, and arrange a controlled test after the update. If several integrations share one egress address, one mistaken change can disrupt them together. If each integration uses a separate address, the mapping and route configuration become more involved. Choose the arrangement the team can verify and maintain.
Choose a server only after the egress requirement is clear
For a small number of integrations that accept one verified source address, a shared egress design is often simpler than assigning an address to every site. For larger multi-site services, separate addresses may be justified when a provider’s documented requirement or a real operational constraint demands them. In either case, independent IPs do not guarantee API availability, security isolation, or correct application behavior.
A shared VPS or public cloud instance may suit a light workload, a short-lived test, or a service that needs rapid changes in capacity. But shared CPU resources, unclear long-term network costs, or limited control over address and system configuration can become constraints when many production sites depend on the same host. A dedicated AMD physical server is a better fit when the business needs an entire machine’s resources and wants to plan its own server-side application and network setup.
snmpcloud offers dedicated AMD servers in Tokyo. Its published product information lists one IPv4 by default, additional IPv4 addresses available individually, and a maximum of 256 IPv4 addresses per server; it also lists 250 Mbps, 1 Gbps, and 2 Gbps bandwidth options, all with unmetered traffic. These are server options, not a promise that an extra address automatically becomes a separate application egress path. Check the current snmpcloud server pricing and available IPv4 options, then confirm the intended network setup before relying on per-application source selection.
Before contacting the provider, prepare the API allowlist requirement, the observed source address from the real application environment, and the team that will maintain each mapping. If the evidence confirms a need for distinct addresses, use the product information to check available IPv4 options and ask snmpcloud about the setup. If one verified source meets the API requirement, keep the shared design and avoid adding routing complexity without a measurable operational reason.
Dedicated AMD EPYC 7543P server from $467/month
