Published•Updated
ngrok
Secure tunnels to localhost
Developer ToolsFree

ngrok — Official Website
What is ngrok?
Secure tunnels to localhost
Install with Homebrew
brew install --cask ngrokHow to Install ngrok on Mac
Follow these steps to install ngrok using Homebrew, the most popular package manager for macOS. This works on both Apple Silicon (M1/M2/M3/M4) and Intel Macs.
- 1
Open Terminal
Launch Terminal from your Applications > Utilities folder, or press Cmd + Space and type "Terminal".
- 2
Install Homebrew
If you don't have Homebrew yet, paste the install script from brew.sh into Terminal and follow the prompts.
- 3
Run
brew install --cask ngrokPaste the following command into Terminal and press Enter:
brew install --cask ngrok - 4
Verify Installation
Run `brew list` to confirm ngrok is installed, then try `ngrok --version` to check the version number.
- 5
Launch ngrok
Run `ngrok` in your Terminal to start using it.
Troubleshooting
- • If you see a permission error, try prefixing the command with
sudo. - • If Homebrew can't find the package, run
brew updatefirst to refresh the package list. - • On Apple Silicon Macs, make sure Homebrew is installed at
/opt/homebrew(the default for M-series chips).
Key Features
Easy installation via Homebrew
Regular updates and maintenance
Free to use
Professional support available
Pros
- ✓Simple one-command installation
- ✓Well-maintained and regularly updated
- ✓Completely free to use
Cons
- ✗Requires Homebrew to be installed
- ✗macOS only
Video Tutorials
Getting Started with ngrok
ProgrammingKnowledge14.2K views
More Tutorials
Make your local website live 🌐💻! Learn to host your PC using ngrok. 🚀 Watch now for the full guide!🔥
Aru Code • 317.4K views
How to Install and Use Ngrok on Mac | Expose Localhost to Public Using Ngrok on macOS
ProgrammingKnowledge2 • 402 views
How to Install Ngrok on Mac | NGROK Setup MacOS M2:M3 2024
Prashant Rana • 1.9K views
Frequently Asked Questions about ngrok
Open Terminal, install Homebrew if you haven't already (visit brew.sh), then run `brew install --cask ngrok`. The app will be downloaded and installed automatically. You can then run `ngrok` from Terminal.