Secure tunnels to localhost

”I want to expose a local server behind a NAT or firewall to the internet.”

Demo without deploying

Don’t constantly redeploy your in-progress work to get feedback from clients. ngrok creates a secure public URL ( to a local webserver on your machine. Iterate quickly with immediate feedback without interrupting flow.

Simplify mobile device testing

Test mobile apps against a development backend running on your machine. Point ngrok at your local dev server and then configure your app to use the ngrok URL. It won't change, even when you change networks.

Build webhook integrations with ease

Building webhook integrations can be a pain: it requires a public address and a lot of set up to trigger hooks. Save yourself time and frustration with ngrok. Inspect the HTTP traffic flowing over your tunnel. Then, replay webhook requests with one click to iterate quickly while staying in context.

Run personal cloud services from your own private network

Own your data. Host personal cloud services on your own private network. Run webmail, file syncing, and more securely on your hardware with full end-to-end encryption.

Download ngrok

ngrok is easy to install. Download a single binary with zero run-time dependencies for any major platform.

Unzip to install

On Linux or OSX you can unzip ngrok from a terminal with the following command. On Windows, just double click

$ unzip /path/to/

Most people keep ngrok in their root folder or set an alias for easy access in the command line.

Fire it up

Read the documentation on how to use ngrok. Try it out by running it from the command line:

$ ./ngrok help

To start a HTTP tunnel on port 80, run this next:

$ ./ngrok http 80

Create an account

Free ngrok accounts give you more bandwidth, more active tunnels, more connections per minute, and other great features. Upgrade to a paid account to get reserved ngrok URLs and custom CNAMEs or to add team members to your account.

Sign up for free →

Need to run ngrok in production?

Use ngrok link to manage your IoT devices or as a lightweight alternative to VPN for targeted access into customer networks.

so is basically the greatest thing ever. @philadams
ngrok: moved ~/bin already, the web inspector is gold @pedromelo
ngrok, probably the best tool I have started to use for my webwork since firebug also great support @inconshreveable @Botto
#ngrok is a dream for testing localhost with remote APIs! @davejlong
Ngrok is the software equivalent of Slash's guitar solo in "Sweet Child of Mine" @kevinwhinnery
#ngrok has become essential to my workflow. Makes testing responsive designs so much easier.@_shadj
ngrok is genius, replaying requests makes webhooks 1M times easier to handle. @Breefield
#ngrok has got to be the easiest local tunnel solution I've ever used.@thecodeboss
More love for ngrok →