Handling Outbound Network Changes

If your Render service maintains a long-lived outbound connection to an external resource (such as a third-party API or database), that connection might experience an interruption due to a change in Render's outbound IP routing for your service:

Common causes of an IP routing change include:

ChangeInitiated by

Adding or deleting dedicated outbound IPs that apply to your service

You

Periodic rotation of in-use IP addresses in Render's default IP ranges

Render

Routine maintenance of Render's IP routing infrastructure

Render

Whenever a routing change occurs, Render proactively resets affected TCP connections to public destinations. This closes the connection with a TCP reset so your service can reconnect using its new outbound IP.

From your service's perspective, this process appears the same as any other transient network interruption.

Restoring an interrupted connection

To restore an outbound connection after an IP routing change, your service can use the same retry logic it would use for other connection interruptions.

The examples below use Node.js and Python, but you can apply this same pattern to other languages and frameworks.

Only retry actions that are safe to repeat.

Make sure to enforce idempotency or deduplication safeguards where appropriate.

Example: HTTP retries

This example demonstrates outbound HTTP connections that retry transient upstream failures using exponential backoff.

Example: WebSocket retries

This example demonstrates an outbound WebSocket connection that reconnects using exponential backoff with jitter between reconnection attempts.

Note that as part of reconnecting, your application might also need to reauthenticate or resubscribe to the upstream service.

FAQ

How often does Render perform actions that change outbound IP routing?

These changes are uncommon, but they are occasionally required as part of Render's routine network operations or when responding to unexpected infrastructure events.

Render maintains dynamic, redundant routing paths to preserve your service's outbound internet connectivity. Whenever traffic moves to a different route (whether as part of routine maintenance or to resolve a transient network-link interruption), established outbound connections can be reset.

When routing changes are necessary, your service might experience multiple resets in short succession.

Do outbound IP changes affect incoming requests to my service?

No. Outbound IP changes don't affect how Render routes incoming requests to your service. They can only interrupt established, outbound internet connections from your service.

Do outbound IP changes affect private network connections?

No. connections between your Render services are not affected by outbound IP routing changes.