Skip to main content

Internal Endpoint Quickstart

Agent Endpoints

When you create an agent endpoint, you can set the binding to internal to make it an internal endpoint.

Loading…

Inferred Binding

ngrok automatically infers an internal binding for any endpoint created with a .internal hostname, so you can omit the binding property in most cases.

For example, the following command creates an endpoint with an internal binding:

Loading…

Cloud Endpoints

You can also create internal cloud endpoints.

Specify a binding of internal when you create the cloud endpoint.

Loading…

traffic-policy.yml

Loading…

Forwarding

Internal endpoints aren’t directly accessible. To send traffic to an Internal Endpoint, you must create an endpoint that uses the forward-internal Traffic Policy action.

For example, to route public traffic to your internal endpoint, you can use the following traffic policy:

Loading…

And you can add it to a Cloud Endpoint with the following terminal command:

Loading…

This configuration lets you manage how traffic reaches your service without requiring it to be directly accessible on the public internet.