Last Updated: February 25, 2016
·
380
· ninjascribble

Map an temporary external URI to a local port with ngrok

Want to test how your application works with services in the outside world, but not quite ready to put it onto an outside server?

ngrok allows you to create temporary external URIs and map them to locally-hosted applications.

https://ngrok.com/download

ngrok is a long-running process. ctrl+c to shutdown and end your connection to the outside world.

# On OS X
$ brew install ngrok
$ ngrok 8080

ngrok

Tunnel Status                 online
Version                       1.7/1.7
Forwarding                    http://72dcd35.ngrok.com -> 127.0.0.1:8080
Forwarding                    https://72dcd35.ngrok.com -> 127.0.0.1:8080
Web Interface                 127.0.0.1:4040
# Conn                        2
Avg Conn Time                 11.21ms



HTTP Requests
-------------
GET /v1/health                200 OK