- Use either a Domain or TCP Address
- Use the
publicbinding
Get started
You can create a public endpoint using: Follow the Getting Started guide to set up an ngrok account and create your first public endpoint.Authentication
Public endpoints are useful out of the box for content you don’t want to restrict access to, such as blogs or marketing sites; but they can also be used for services that require strict access control such as dashboards or private APIs. To keep such services both public and secure, you can add a Traffic Policy to your endpoint for authentication and authorization. Traffic Policy actions enable you to do the following with your endpoints:URLs
When you create a public endpoint, the URL you create it with is validated differently based on the protocol of the URL.http
- The hostname must match a Domain in your account.
- The hostname must be a domain with a valid public suffix.
- The port must be
80. If you do not specify a port, the default80will be used for you.
http://example.ngrok.apphttp://example.ngrok.app:80http://example.partyhttp://example.ngrok.app:81- invalid port, must be80, not81http://example.doesnotexist- invalid hostname:.doesnotexistis not a public suffix domainhttp://example.internal- invalid hostname:.internalis not a public suffix domain
https, tls
- The hostname must match a Domain in your account.
- The hostname must be a domain with a valid public suffix.
- The port must be
443. If you do not specify a port, the default443will be used for you.
https://example.ngrok.apphttps://example.ngrok.app:443https://example.partyhttps://example.ngrok.app:8443- invalid port, must be443https://example.nosuchtld- invalid hostname,.nosuchtldis not a public suffix domainhttps://example.internal- invalid hostname, public endpoints cannot use.internal
tcp
- You must specify a port number in TCP URLs.
- The hostname and port must match the address of a TCP Address in your account.
tcp://1.tcp.ngrok.io:12345tcp://1.tcp.eu.ngrok.io:12345tcp://1.tcp.ngrok.io- invalid, does not specify a port numbertcp://example.ngrok.app:12345- invalid, does not match a TCP Addresstcp://your-domain.com:12345- invalid, does not match a TCP Address