Skip to main content
Ngrok creates a secure tunnel from a public URL to your local server, making it easy to share work in progress, test webhooks, or demo applications.
1
Sign up for Ngrok
2
Create a free account at ngrok.com to get your auth token.
3
Claim a free subdomain (Optional)
4
Ngrok allows you to claim one free static subdomain from your dashboard.
5
Download and install Ngrok
6
Download the package for your OS, then extract and install it:
7
tar -xvzf ngrok-v3-stable-linux-amd64.tgz
8
Optionally, copy it to /usr/local/bin to make it available system-wide:
9
cp ngrok /usr/local/bin
10
Connect your account
11
Authenticate Ngrok with your auth token:
12
ngrok config add-authtoken <auth-token>
13
The auth token is saved to ~/.config/ngrok/ngrok.yml.
14
Start an HTTP tunnel
15
Forward traffic to your local server:
16
ngrok http 80

# With a custom domain (if you claimed one)
ngrok http --domain=<domain-name> 80
17
Access your public URL
18
Open the URL shown in the Ngrok terminal output (or your custom domain) in any browser. Your local server is now publicly accessible.

Build docs developers (and LLMs) love