Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
Decouple policy from your sensitive data with Secrets for Traffic Policy... now
in developer preview →
Platform Use cases Blog Resources Docs Pricing Get ngrok
Static domains for all
ngrok users
Features Cloud edge Static domain
August 16, 2023 | 5 min read
by Nijiko Yonskai
01-21-2025: We updated this blog post with new instructions on reserving a static
domain in your dashboard and more opportunities for using your static domain
on different types of endpoints and agents.
We are excited to announce the launch of one of our most requested features: static
domains for free users. Starting today, all users can reserve one static domain for free.
Static domains are unique to your account and remain yours until you delete them.
You specify a subdomain, like your-company, and attach that to one of the available
root domains—e.g. ngrok.app or ngrok.dev .
1 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
With your free static domain, you can focusdata
on developing your
forapplication or now
Decouple policy from your sensitive with Secrets Traffic Policy...
configuring ngrok aspreview
your API→gateway without needing to worry about how to deal
in developer
with the default behavior of the ngrok agent, which is to generate a random URL like
Platform Use cases Blog Resources Docs Pricing Get ngrok
https://9490551445c1.ngrok.app . That makes the development and testing
lifecycle even easier, especially for pre-release versions or internal apps.
If you don't need a branded domain, you can now run your first production app on
ngrok’s free tier. Should those needs change, you can always upgrade to a pay-as-
you-go plan and bring a branded domain, which allows you to create and number of
endpoints like api.your-company.com and app.your-company.com without limits.
Our mission is to equip developers with composable infrastructure that makes putting
APIs and apps online as simple as ngrok http ... . Free static domains get all of us
one crucial step closer to that vision.
Reserve your static domain
Follow these steps:
1. Log in to your ngrok account.
2. Navigate to Universal Edge > Domains and click + New Domain (or just click the
link to take you straight there).
3. Type in your subdomain and choose one of the ngrok domains.
2 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
Decouple policy from your sensitive data with Secrets for Traffic Policy... now
in developer preview →
Platform Use cases Blog Resources Docs Pricing Get ngrok
Put your new static domain to use
With a static domain for your apps and APIs, you can use ngrok to front all your APIs
or apps whether you're testing on localhost or wiring up a production multi-cloud
API gateway.
With the ngrok CLI
The fastest way to get started with your static domain to create an agent endpoint.
3 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
In this case, your new static
fromdomain would route
data traffic directly
fortoTraffic
the API or appnow
Decouple policy your sensitive with Secrets Policy...
service in
running on port 80 .
developer preview →
Platform Use cases Blog Resources Docs Pricing Get ngrok
ngrok http 80 --url=<YOUR_STATIC_DOMAIN>
With a cloud endpoint
Cloud endpoints are always online and not tied to the lifecycle of an ngrok agent—you
can think of them like serverless functions for handling traffic.
Head to Endpoints > + New and type in your reserved static domain.
Cloud endpoints are perfect for creating a single point of ingress for your root domain
at your-company.com —that's exactly what we do for ngrok.com . When combined
with internal endpoints, you can route traffic to any number of upstream services and
control the configuration from one place.
With an ngrok agent SDK
4 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
AnotherDecouple
way to use ngrok andyour
yoursensitive
static domains is via the ngrok AgentPolicy...
SDKs, which
policy from data with Secrets for Traffic now
allow you to embed ngrok's functions directly into your APIs or apps.
in developer preview →
Platform
For example, using Use cases
the ngrok-go SDK: Blog Resources Docs Pricing Get ngrok
package main
import (
"context"
"fmt"
"log"
"net/http"
"golang.ngrok.com/ngrok"
"golang.ngrok.com/ngrok/config"
)
func main() {
tun, err := ngrok.Listen(context.Background(),
config.HTTPEndpoint(config.WithDomain("<YOUR_STATIC_DOMAIN>"
ngrok.WithAuthtokenFromEnv(),
)
if err != nil {
log.Fatal(err)
}
log.Println("Application available at:", tun.URL())
err := http.Serve(tun, http.HandlerFunc(handler))
if err != nil {
log.Fatal(err)
}
}
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello from ngrok-go!")
}
Once you run go run main.go , the ngrok creates an agent endpoint on your static
domain and makes this application accessible from anywhere in the world.
With a Kubernetes cluster
5 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
If you'reDecouple
using Kubernetes to make your APIsdata
or apps
withavailable to Traffic
the public, younow
can
policy from your sensitive Secrets for Policy...
leverage inour Kubernetes Operator to handle ingress and load balancing without
developer preview →
dealing deeply with the Ingress or Gateway API objects.
Platform Use cases Blog Resources Docs Pricing Get ngrok
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
spec:
ingressClassName: ngrok
rules:
- host: <YOUR_STATIC_DOMAIN>
http:
paths:
- path: /
backend:
serviceName: example-service
servicePort: 80
The Kubernetes Operator then creates pods and services to route all traffic on
https:// to the example-service pod.
Sign up and get started today
In case you don’t yet have an ngrok account, you can sign up for free, which lets you
claim 1 static domain.
When you're ready to start using ngrok for production, upgrade to a pay-as-you-go
account. You can then reserve your custom branded domain, like your-
company.com , and update your DNS records to point to ngrok to create as many
subdomains as you need and handle ingress to all your services from one place.
Let us know if you run into any problems or have any questions either by email our
customer success team or by dropping an issue in our community repo.
Share this post Nijiko Yonskai
Niji is a Principal Product
Manager who helps shape
6 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
ngrok user experience.
Decouple policy from your sensitive data with Secrets for Traffic Policy... now
Previously product at Kong
in developer preview →
and Postman.
Platform Use cases Blog Resources Docs Pricing Get ngrok
Platform Use Cases Resources Get Company
Started
Product ngrok for Security About
Cloud Edge development Trust Download Newsletter
Secure ngrok for Platform Pricing Events
Tunnels production Docs
Customers Press
Platform API Gateway Contact
Integrations Brand
Features Site-to-Site Partners
Blog Careers
Connectivity
Support Service Terms of
Kubernetes status
Abuse Service
Operator
Privacy
Device Policy
Gateway
Privacy
Global Load Preferences
Balancer
DPA
Identity-Aware
Proxy
Webhook
Testing
Developer
Preview
View all use
cases
7 of 8 8/4/25, 11:14 AM
Static domains for all ngrok users - ngrok https://ngrok.com/blog-post/free-static-domains-ngrok-users...
Decouple policy from your sensitive data with Secrets for Traffic Policy... now
in developer preview →
Platform
© 2025 ngrok, Inc. Use cases Blog Resources Docs Pricing Get ngrok
8 of 8 8/4/25, 11:14 AM