Static IPs on every cloud

How to Set Up a Static IP for Cloud Applications

Cloud apps send traffic from addresses that change or are shared, so an allowlist that wants one fixed IP will reject them. You have two ways to fix that on any cloud: build your cloud's own NAT route with a reserved address, or send the connections that need a fixed IP through a managed static IP proxy.

QuotaGuard is a managed static IP proxy. QuotaGuard Shield and QuotaGuard Static give your app a load-balanced pair of static IPs that works the same way on AWS, Google Cloud, Azure and every PaaS, for outbound and inbound traffic.

Start with the direction of the traffic

Before you pick a route, write down which side needs the fixed address.

  • Outbound. Your app calls an API, database or partner that only accepts approved source IPs. You need a fixed source address.
  • Inbound. A customer's firewall only lets its users reach approved destination IPs. You need a fixed address in front of your app.

The native cloud tools below are mostly outbound tools. Inbound usually needs a separate piece, which is covered in each section. If customers need to reach you, see inbound static IPs.

Every cloud at a glance

CloudNative outbound static IPWhat you build and runNative fixed inbound IPWith QuotaGuard
AWS (EC2, ECS, Lambda)NAT gateway with an Elastic IPVPC, public and private subnets, route tables, the NAT gateway. Lambda functions have to be attached to the VPCElastic IP on an instance or Network Load Balancer, or AWS Global AcceleratorSame IP pair, no VPC changes. AWS static IPs
Google Cloud (Cloud Run)Cloud NAT in manual mode with a reserved static IPVPC network and subnet, Cloud Router, Cloud NAT, and Direct VPC egress or a connector with all traffic routed to the VPCA reserved external IP on a load balancer in front of the serviceSame IP pair, no Cloud NAT. Google Cloud static IPs
Azure (App Service, Functions)Azure NAT Gateway with a public IPVirtual network, regional VNet integration that routes all traffic, the NAT gateway, and a supported App Service plan tierA static public IP on a load balancer or gateway in front of the appSame IP pair, no VNet changes. Azure static IPs
PaaS (Heroku, Render, Railway, Fly.io, Vercel and others)Varies by platform and planOften a higher plan tier, and the IPs may be shared or tied to one regionRarely offeredSame IP pair on any platform. PaaS static IPs

Cloud features and prices change. Each row links to the provider's own documentation in the sections below, checked November 24, 2026.

AWS: NAT gateway and Elastic IP

On AWS, outbound traffic from private subnets reaches the internet through a NAT gateway, and the destination sees the NAT gateway's Elastic IP. The usual setup:

  1. Allocate an Elastic IP in the Region your workload runs in. Elastic IPs are tied to one Region.
  2. Create a NAT gateway in a public subnet and associate the Elastic IP.
  3. Point the private subnets' default route at the NAT gateway, and run your instances, tasks or functions in those subnets. A Lambda function only uses this path once it's attached to the VPC.
  4. Give the Elastic IP to the destination for its allowlist.

What it costs you: AWS charges for the NAT gateway by the hour plus a per-GB data processing fee ($0.045 an hour and $0.045 per GB in AWS's US East (Ohio) example), $0.005 an hour for each public IPv4 address, and standard data transfer. For high availability you'd run a NAT gateway per Availability Zone. See Amazon VPC pricing.

For inbound, an Elastic IP on an instance or Network Load Balancer gives customers a fixed address, and AWS Global Accelerator gives you two static IPv4 addresses in front of AWS endpoints. For the inbound side with QuotaGuard, see Give Customers a Static Destination IP for Your SaaS.

Want the shorter path for Lambda? See AWS Lambda static IP without a NAT gateway.

Google Cloud: Cloud NAT with a reserved IP

By default, Cloud Run sends outbound requests from a regional pool of dynamic addresses shared across serverless workloads, and Google's own docs say not to rely on it when you need a predictable origin IP. The documented setup:

  1. Create a Cloud Router on your VPC network in the same region as the service.
  2. Reserve a static external IP address in that region.
  3. Create a Cloud NAT gateway in manual mode that uses the reserved address.
  4. Deploy the service with Direct VPC egress (or a Serverless VPC Access connector) and --vpc-egress=all-traffic, so every outbound request goes through the VPC.
  5. Allowlist the reserved address and check the origin IP from inside the service.

More detail: Cloud Run static IP and Google Cloud Platform integration.

Azure: NAT Gateway with VNet integration

On Azure App Service and Functions, a NAT gateway gives your app a static, predictable public IP for outbound traffic. Microsoft's documented setup:

  1. Make sure the App Service plan is on a tier that supports virtual network integration.
  2. Turn on regional virtual network integration and route all outbound internet traffic through it.
  3. Create a NAT gateway with a static public IP (or a public IP prefix) and associate it with the integration subnet.
  4. Allowlist the NAT gateway's public IP.

Microsoft notes that once a NAT gateway is in place, traffic to Azure Storage has to use private endpoints or service endpoints. More detail: Azure Functions static IP and Azure integration.

PaaS platforms

Platforms like Heroku, Render, Railway, Fly.io and Vercel each handle outbound IPs differently. Some sell a native fixed-IP option on higher tiers, sometimes shared with other customers and usually outbound only. We keep a platform-by-platform comparison in how to get a static IP on any PaaS platform.

The managed route: the same setup on every cloud

With QuotaGuard you don't change the network your app runs in. You send the connections that need a fixed IP through the proxy, and QuotaGuard runs the proxies, monitoring and failover.

  1. Pick QuotaGuard Shield or QuotaGuard Static, and a region close to your app. Shield uses SSL passthrough, so traffic isn't decrypted at the proxy. Static covers standard API, database and automation traffic.
  2. Copy your proxy URL from the dashboard into an environment variable. On Heroku the add-on sets it for you as QUOTAGUARDSHIELD_URL or QUOTAGUARDSTATIC_URL.
  3. Configure the HTTP client or database driver that makes the restricted connection to use the proxy, over HTTP or SOCKS5. Traffic that doesn't need a fixed IP can stay direct.
  4. Give the destination both IPs from your dashboard.
  5. From the deployed app, request https://ip.quotaguard.com through the proxy and check that the address belongs to your pair. Then test the real API or database call.

The same IP pair follows your app if it moves between clouds, and inbound is available on every plan. Static starts at $19 a month and Shield at $29 a month. See pricing, the docs, and our checklist on how to choose a managed static IP proxy service.

When the native route is the better choice

If your whole stack already lives in one cloud, your team is comfortable running NAT and load balancers, and every workload that needs the fixed IP sits in the same network, the native route can be the simpler answer. A managed proxy earns its place when you run on more than one cloud or a PaaS, need inbound as well as outbound, want the same IPs to survive a platform move, or would rather not operate that network layer yourself.

FAQ

How do I get a static outbound IP for a cloud application?

Either route outbound traffic through your cloud's NAT service with a reserved address (a NAT gateway with an Elastic IP on AWS, Cloud NAT with a reserved IP on Google Cloud, Azure NAT Gateway on Azure), or send the connections that need a fixed IP through a managed static IP proxy such as QuotaGuard.

Does a NAT gateway give me a static inbound IP too?

No. A NAT gateway handles traffic your app starts. For customers reaching your app you need a fixed address in front of it, such as a load balancer with a reserved IP, AWS Global Accelerator, or an inbound static IP from QuotaGuard.

Can I keep the same static IP if I move to another cloud?

Not with a native cloud address, because it belongs to that cloud account and region. QuotaGuard IPs belong to your QuotaGuard account, so the same pair works wherever the app runs.

Why does QuotaGuard give me two IPs instead of one?

The pair is load-balanced with automated failover. Put both on the allowlist so traffic keeps flowing if one path is unavailable.

Is a static IP enough to secure an API connection?

No. An allowlist narrows who can connect, but keep the destination's API keys, database credentials and application authorization in place.

Reliability Engineered for the Modern Cloud

For over a decade, QuotaGuard has provided reliable, high-performance static IP and proxy solutions for cloud environments like Heroku, Kubernetes, and AWS.

Get the fixed identity and security your application needs today.