[proxy] ngrok.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

Endpoints - ngrok documentation

An ngrok Endpoint is a URL that enables network traffic to reach your services. You can think of endpoints as a gateway to anything you want to enable access for—whether that’s a local development server on your laptop, a production Kubernetes cluster, a database behind a corporate firewall, or a cloud API. Endpoints bridge the gap between your resources and the traffic that needs to reach them.

Why endpoints matter

Endpoints are ngrok’s universal gateways, letting you:

How endpoints work

Endpoints enable traffic flow and management through three core features:

Control access with bindings

An endpoint’s binding defines where traffic originates:

Set protocol via URL scheme

You can specify your endpoint’s URL protocol to indicate the type of traffic it should handle. This allows you to configure your endpoint to match your services and application type:

Manage, manipulate and secure traffic through policies

Add business logic and route traffic during the request lifecycle with Traffic Policy:

Deliver traffic anywhere

You can host endpoints on your local machine with the ngrok Agent or in the cloud with ngrok Cloud Endpoints.

See Cloud Endpoints vs Agent Endpoints for a side-by-side comparison.

Get started

Enable access to a local web app on port 8080 with the ngrok CLI:

ngrok http 8080

This command will start an Agent Endpoint that forwards traffic through the ngrok CLI agent to your locally running application on port 8080. To learn more, follow ngrok’s Quickstart.

Load balancing with Endpoint Pooling

Endpoint Pooling allows you to create multiple endpoints with the same URL. Traffic sent to a URL with an Endpoint Pool is load-balanced among the Endpoints in the pool. See the Endpoint Pooling quickstart to learn more.

Managing endpoints with ngrok’s APIs

Cloud Endpoints are programmatically managed via:

Agent Endpoints, by contrast, are programtically managed via:

Agent Endpoints are also accessible in a read-only capacity via:

Pricing

Free and Hobbyist plans allow you to use your included credit to start endpoints. On the Pay-as-you-go plan, there is no limit on the number of endpoints you can create. An endpoint that transmits data in a clock hour is counted as an active endpoint for that hour and charged an endpoint hour. See Pricing for more information.

Learn more