ngrok

🛠Tool
dev-ops

Create Tunnel

Expose localhost:8080 to ngrok subdomain:

ngrok http 8080

Observe incoming and outgoing requests at http://127.0.0.1:4040

See these ngrok npm instructions.

Config

You find ngrok config file at /Users/example/.ngrok2/ngrok.yml.

Connect with ngrok on raspberry pi

  1. Logged into the raspberry, go to the ngrok website to download the Linux ARM version with wget, e.g.

    sudo wget https://dl.ngrok.com/ngrok_2.0.19_linux_arm.zip
  2. Unzip it

    unzip ngrok_2.0.19_linux_arm.zip
  3. Expose internal port 80

    ./ngrok http 80
  4. Add tcp connection for ssh

    ./ngrok authtoken <my_auth_token>
    ./ngrok tcp 22

Discuss on TwitterImprove this article: Edit on GitHub

Discussion


Explain Programming

André Kovac builds products, creates software, teaches coding, communicates science and speaks at events.