Skip to content

Ngrok

Installation

https://dashboard.ngrok.com/get-started/setup

Download tar, extract, move to $HOME/.local/bin/ ./ngrok to test working:

# bryanlurer @ bl-dt in ~/Downloads [5:34:32] 
$ ngrok    
NAME:
   ngrok - tunnel local ports to public URLs and inspect traffic
Auth: ./ngrok authtoken {Token from site}

# bryanlurer @ bl-dt in ~/Downloads [5:34:36] 
$ ngrok authtoken {TOKEN}
Authtoken saved to configuration file: /home/bryanlurer/.ngrok2/ngrok.yml
Test: ngrok http 80

ngrok by @inconshreveable                                                                                     (Ctrl+C to quit)

Session Status                online                                                                                          
Account                       Bryan (Plan: Basic)                                                                             
Version                       2.3.40                                                                                          
Region                        United States (us)                                                                              
Web Interface                 http://127.0.0.1:4040                                                                           
Forwarding                    http://28067a2211f7.ngrok.io -> http://localhost:80                                             
Forwarding                    https://28067a2211f7.ngrok.io -> http://localhost:80                                            

Connections                   ttl     opn     rt1     rt5     p50     p90                                                     
                              0       0       0.00    0.00    0.00    0.00   

Usage

``` ngrok http --region=ap --hostname=blurer.ap.ngrok.io 80 ngrok http --region=us --hostname=drive.ngrok.io 80 ngrok http --region=jp --hostname=crypto.jp.ngrok.io 80