BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Ngrok Starts Offering One Static Domain to All of its Free Users

Ngrok Starts Offering One Static Domain to All of its Free Users

This item in japanese

To make it easier for developers to expose their local services to the Internet while coding and testing, ngrok now allows users to create and use one static domain for free instead of relying on time-limited, random domains.

Ngrok domains are often used to make the API of a service under development and running on a developer's machine accessible to testers or other developers so they can use it from a different device not belonging to the same intranet/extranet.

Ngrok has long offered a free tier to its users, albeit with some limitations. In particular, the tunnel link associated with a free account expires after eight hours, which requires the ngrok service to be restarted to set up a new tunnel, creating a new random domain to use to access the exposed service.

Static domains are unique domains that are yours and don’t change. With your free static domain, you can focus on developing your application, and no longer need to worry about broken links caused by agent restarts. There’s no need to constantly keep updating webhook providers or mobile apps with new URLs or send new links to your team.

Free static domains should not be confused with custom domains, also known as "branded" domains, which remain a premium feature. A static domain is a subdomain of one of a number of ngrok-owned domains, such as ngrok.io, ngrok-free.app and others, and have thus the form panda-new-kit.ngrok-free.app, whereas a non-static domain includes a randomly generated ID, such as 85ee564738gc.ngrok.io. Setting up a custom domain is a slightly more complex process, requiring some configuration on both ngrok's and your DNS provider's side.

The first step to set up a static domain with your free ngrok account is heading to your ngrok dashboard to create a new Cloud Edge domain. This will provide a URL you can use from the ngrok CLI to create the tunnel:

ngrok http -–domain=panda-new-kit.ngrok-free.app 80

Alternatively, this can be achieved via any of the ngrok Agent SDKs, which are available for a variety of languages, including Go, Rust, and others.

As a last note, a static ngrok domain also enables using ngrok's Kubernetes Ingress Controller, which can be seen as a Kubernetes-native API wrapped around ngrok's platform to provide public and secure ingress traffic to k8s services.

About the Author

Rate this Article

Adoption
Style

BT