Google Apps Script Static IPs

Give your Apps Script two fixed IPs that any allowlisted API will accept. Your UrlFetchApp calls arrive from the same pair every run, so the destination stops seeing an unknown address from Google's shared pool.

Apps Script has no proxy field on UrlFetchApp and no env vars or sidecar in the sandbox, so a small relay function you host does the egress. Apps Script calls the relay, the relay forwards through QuotaGuard, and the API sees your two static IPs.

Register the pair on the allowlist once and they stay fixed. QuotaGuard has run static outbound IPs since 2013, direct from $19/month.

Google Apps Script calling a relay function that egresses through QuotaGuard to an allowlisted API, which sees two fixed IPs

Reach an Allowlisted API from UrlFetchApp Through Two Fixed IPs

You get a stable pair of source IPs for outbound calls even though Apps Script gives you no way to set a proxy. UrlFetchApp.fetch() exposes options for method, headers, and payload, but no proxy field, and the sandbox has no environment variables and no sidecar process to route through.

The fix is a small relay function you host on AWS Lambda or a Google Cloud Function. It egresses through QuotaGuard, so your script keeps using UrlFetchApp exactly as before and the target API sees a fixed origin.

Call the relay URL, not the API directly

Your script sends its UrlFetchApp request to the relay function URL and adds two headers: X-Relay-Key, a shared secret that authorizes the call, and X-Target-URL, the real API you want to reach. The relay reads both, then makes the outbound request on your behalf.

The relay egresses through QuotaGuard

The relay forwards the request through its QUOTAGUARDSTATIC_URL connection, so the destination sees one of your two static IPs instead of a Google address. The full response passes straight back to your script.

Standard HTTPS stays end to end

For a normal HTTPS API, QuotaGuard Static tunnels the payload end to end and never decrypts it at the proxy. The reusable relay is published at the QuotaGuard static-examples repository and documented in the no-HTTP-proxy platform guide, so you copy it rather than build from scratch.

UrlFetchApp.fetch calling a relay URL with X-Relay-Key and X-Target-URL headers, the relay egressing through QuotaGuard to the target API

Hold the Relay Secret in Script Properties and Route Every Trigger Through It

You keep the relay key out of your code and reuse the same egress path from every kind of Apps Script execution. Because the sandbox has no environment variables, PropertiesService is where the secret belongs, and one relay serves all your entry points.

Store X-Relay-Key in Script Properties

Save the relay secret and the relay URL as script properties and read them with PropertiesService at run time. That keeps the credential out of the source and out of version history, which matters because Apps Script offers no env vars to hold it.

Works from every execution surface

Time-driven triggers, a published web app's doGet and doPost, and Google Workspace add-ons all call UrlFetchApp the same way, so they all route through the one relay and the same two IPs. Point every outbound integration at the relay URL and the source address stays consistent no matter what started the run.

Static for standard calls, Shield for regulated data

QuotaGuard Static, direct from $19/month, is the right choice for standard HTTPS API calls and keeps the payload encrypted end to end. If the data is regulated under HIPAA, PCI-DSS, or SOC 2, use QuotaGuard Shield, direct from $29/month, which passes the SSL session through without decrypting it.

Script Properties holding the relay key, feeding time-driven triggers, a web app, and a Workspace add-on that all route through one relay

Stay Reachable on a Load-Balanced Pair Built to Stay Up

Your relay egresses through two static IPs, not one, so a single node failing never takes your integrations offline. The pair is the same design behind every QuotaGuard integration, and it is what you register on the destination allowlist.

Two IPs with automatic failover

Each subscription includes two load-balanced static IPs with health checks and automatic failover. Allowlist both on the destination so traffic keeps flowing when either one is out.

Choose your region

Run the connection from any of eleven AWS regions across North America, Europe, and Asia Pacific. Pick the region closest to the API you call to cut round-trip latency, or one that matches a data-residency requirement.

The pair stays fixed as you scale

Your two IPs do not change when you move between plans, so a billing change never forces an allowlist edit on the destination. You register the pair once and leave it in place.

Two load-balanced QuotaGuard IPs with a health check and failover, both entries on the destination allowlist

FAQs

Common questions about Google Apps Script static IPs and QuotaGuard.

Do I actually need a static IP for Google Apps Script?
You need one only when the API you call enforces a customer-controllable IP allowlist. Apps Script sends UrlFetchApp requests from a large pool of Google IP ranges that is shared across all Apps Script users and changes over time, so you cannot pin that pool onto a strict allowlist. Routing through QuotaGuard replaces it with two fixed IPs you control and register once.
Why can't I just set a proxy on UrlFetchApp?
UrlFetchApp.fetch() takes an options object with method, headers, payload, and a few flags, but there is no proxy field. The sandbox also has no environment variables and no sidecar process, so there is nowhere to configure an outbound proxy. That is why the fixed IP comes from a relay function you host rather than from a proxy setting inside the script.
Where does the relay function run?
You host it on AWS Lambda or a Google Cloud Function, wherever fits your stack, and it egresses through QuotaGuard using the QUOTAGUARDSTATIC_URL connection. A ready-to-run example lives in the QuotaGuard static-examples repository and the reusable pattern is documented in the no-HTTP-proxy platform guide, so you deploy it rather than write it from scratch. Your Apps Script then calls that one relay URL for every outbound integration.
How do I test that the calls really use the static IPs?
Send one UrlFetchApp request through the relay with X-Target-URL set to https://ip.quotaguard.com. The response returns one of your two static IPs, confirming the traffic egressed through QuotaGuard before you point the relay at the real API. Because the pair is load balanced, repeated checks can return either of the two addresses, and both are valid.
How long does setup take?
Deploy the example relay, set its QuotaGuard connection, and store the relay URL and X-Relay-Key as script properties, then change your UrlFetchApp target to the relay URL. Most integrations are routed and verified in well under an hour, and the last step is adding your two IPs to the destination allowlist.
Should I use Static or Shield for my data?
QuotaGuard Static, direct from $19/month, fits standard HTTPS API calls and tunnels the payload end to end without decrypting it at the proxy, so it covers the large majority of Apps Script integrations. Choose QuotaGuard Shield, direct from $29/month, only when the data is regulated under HIPAA, PCI-DSS, or SOC 2. Shield uses SSL passthrough so the encrypted session is never opened in transit.
How many IPs do I get, and can I have a dedicated one?
Every subscription includes two load-balanced static IPs, not one, so allowlist both on the destination for failover to work. The two are shared IPs on standard plans. Dedicated IPs are available on Enterprise plans, so contact QuotaGuard directly if a destination requires a source address used by no other customer.
What about inbound webhooks and callbacks to my script?
A static IP governs the source of your outbound UrlFetchApp calls. It does not change how an inbound webhook reaches an Apps Script web app, because Google terminates and routes that traffic to your published deployment, and there is no fixed inbound IP to hand a partner. When a provider needs to allowlist where your requests come from, the two static IPs are the outbound side of that exchange, and any verification you do back to the provider goes through the same relay so it also carries the fixed pair.

🚀 Ready to Get Started? Choose Your QuotaGuard Path

QuotaGuard STATIC

Why: You need a rock-solid, fixed IP for general API access, AI workflows, or standard third-party integrations.
Best For: Developers, startups, and general application connectivity.
Key Feature: SOCKS5 support for secure database access.
Sign Up for QG Static

QuotaGuard SHIELD

Why: You handle PHI, payment card data, or sensitive PII and require TLS encryption on the customer-to-proxy hop while preserving your application’s HTTPS session to its destination.
Best For: Regulated industries, financial services, and healthcare.
Key Feature: TLS-encrypted proxy connection with the destination HTTPS session preserved.
Sign Up for QG Shield

Trusted by Engineering Teams Everywhere

What our customers say

Customer experiences, in their own words. Swipe or scroll to read more.

We've been using QuotaGuard Static for nearly six years to provide static IP addresses to our clients so they are able to whitelist our network traffic.

Read full testimonial

We've been using QuotaGuard Static for nearly six years to provide static IP addresses to our clients so they are able to whitelist our network traffic.

The service has been hassle free, has never "not worked" or had any downtime to my knowledge. The only time we've reached out to support was during a migration from one cloud provider to another to ensure that we wouldn't cause interruptions in the service ourselves. The service we received at that time was prompt and professional.

Zach ColonVP of Engineering at ItsaCheckmate.comSubmitted Oct 20, 2023

The app's backend runs on serverless functions, and the railway data provider I was using only accepted requests from a fixed IP address. QuotaGuard gave me exactly that, and my passengers' PNR status checks kept working.

Read full testimonial

I used QuotaGuard Static IPs for ClearBerth, my train app for Indian Railways passengers. The app's backend runs on serverless functions, and the railway data provider I was using only accepted requests from a fixed IP address. QuotaGuard gave me exactly that, and my passengers' PNR status checks kept working.

It helped me because I could keep building the app without worrying about how to get a static IP. For a solo developer that is a real relief.

The best thing about QuotaGuard is the owner himself. Michael is kind, thoughtful and genuinely warm. When I wrote to say thank you, he replied personally, said it made his Sunday morning, and offered a returning customer discount for any future project. You do not often get that from a service company. I would happily use QuotaGuard again and I recommend it to any developer who needs a static IP.

Aditya Bhattacharya, ClearBerth

Aditya BhattacharyaFounder of ClearBerth appSubmitted Oct 18, 2026

QuotaGuard provided a static IP address via a SOCKS5 proxy. Setting up the proxy and using it from my server was very straightforward.

Read full testimonial

I have a web app running in Heroku, and that server occasionally needs to FTP files from another host. That host required requests to come from a whitelisted IP address. QuotaGuard provided a static IP address via a SOCKS5 proxy. Setting up the proxy and using it from my server was very straightforward.

Stephen BeitzelCTO, Narrative TechnologiesSubmitted Mar 28, 2024

I use QuotaGuard to connect with various APIs that require IP whitelisting and run web automations that require a country-specific IP. The stability and reliability of the service have been nothing short of exceptional.

Read full testimonial

I use QuotaGuard to connect with various APIs that require IP whitelisting and run web automations that require a country-specific IP. The stability and reliability of the service have been nothing short of exceptional. It simply works as expected and whenever I’ve had any questions Michael and the team are always very quick to respond to emails. I would recommend them without a doubt.

Jose VilchesCEO at SIM StoreSubmitted Oct 29, 2023

QuotaGuard has been a reliable partner for us for many years. Their service has consistently been solid, and when we ran into a more unusual use case, their team understood the situation quickly and worked closely with us to resolve the issues.

Read full testimonial

QuotaGuard has been a reliable partner for us for many years. Their service has consistently been solid, and when we ran into a more unusual use case, their team understood the situation quickly and worked closely with us to resolve the issues. That level of responsiveness and support has made a real difference for us.

Anton Litvinenkoco-founder @ Import2Submitted Aug 11, 2026

QG helped us prove our pipeline and workflow with users and in the end, we would have stayed but we use AWS for all our production so we had to switch. Sorry to go but loved every minute of it!

Read full testimonial

QUOTAGUARD FTW! We used qg for spooling up a prototype that needed access to MongoDB through Heroku without having to use 0.0.0.0 in mdb whitelist. Big nono for privacy and security. QG helped as we were able to add it as a resource in Heroku and test our prototype. As the platform matured, more test users came on board and our bandwidth scaled to a point where we were no longer a prototype so we moved over to AWS which is where our production apps live. The team at QG is beyond awesome. I sent an email and I think within 24hrs or less we had solved the issues with Tim and Michael. The fact they didn't pester after signup was refreshing as well. They are Dev dev's who get it. QG helped us prove our pipeline and workflow with users and in the end, we would have stayed but we use AWS for all our production so we had to switch. Sorry to go but loved every minute of it!

Greg LuttonCEO Exsurgo TechnologiesSubmitted Jun 1, 2026

Even though the issue was bank related, Michael and Randall provided exceptional support and helped me troubleshoot the issue.

Read full testimonial

I've had a issue tunneling requests to my bank's VPOS through QuotaGuard.

Even though the issue was bank related, Michael and Randall provided exceptional support and helped me troubleshoot the issue.

5 stars service, highly recommended!

Ozgur S.FounderSubmitted Jul 21, 2026

The product works great - but where they really shine is the exceptional customer service.

Read full testimonial

I needed to configure a static IP address for my app running on Heroku, so I could connect to an external database in a more secure manner. A colleague recommended Quotaguard as an option.

The product works great - but where they really shine is the exceptional customer service. One of my background workers was sneakily polling, which didnt show on the logs, and the Quotaguard support team showed patience and knowledge helping me get to the root of the problem. Fantastic team.

AlexSubmitted Aug 1, 2024

QuotaGuard is an excellent company to work with, they really helped me out on my API issue. Appreciate them as a partner.

Read full testimonial

QuotaGuard is an excellent company to work with, they really helped me out on my API issue. Appreciate them as a partner.

John William MeyerCEO, Jump FinanceSubmitted Sep 30, 2026

Solid service. :) Does what's on the tin.

Read full testimonial

Solid service. :) Does what's on the tin. They know what they're doing, and I mean that in two ways: (1) their execution of their value offering is *solid*, and (2) they appear undistracted by things that *aren't* what they're doing. A "small, sharp tools", you know?

IsaacLightwardSubmitted Jan 25, 2024

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.