Difference between revisions of "Ngrok: ubuntu"

From OnnoWiki
Jump to navigation Jump to search
 
Line 9: Line 9:
 
  wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
 
  wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
 
  unzip /path/to/ngrok.zip
 
  unzip /path/to/ngrok.zip
 +
 +
 +
atau
 +
 +
Download https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz
 +
tar zxvf ngrok-v3-stable-linux-amd64.tgz
  
 
==Running==
 
==Running==

Latest revision as of 20:20, 29 November 2022

Instalasi

sudo apt update
sudo apt -y install snapd
sudo snap install ngrok

atau

wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip /path/to/ngrok.zip


atau

Download https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz
tar zxvf ngrok-v3-stable-linux-amd64.tgz

Running

Jika di install menggunakan snap

/snap/bin/ngrok authtoken <your_auth_token>
/snap/bin/ngrok help
/snap/bin/ngrok http 80


Contoh2 lain

ngrok http 80                    # secure public URL for port 80 web server
ngrok http -subdomain=baz 8080   # port 8080 available at baz.ngrok.io
ngrok http foo.dev:80            # tunnel to host:port instead of localhost
ngrok http https://localhost     # expose a local https server
ngrok tcp 22                     # tunnel arbitrary TCP traffic to port 22
ngrok tls -hostname=foo.com 443  # TLS traffic for foo.com to port 443
ngrok start foo bar baz          # start tunnels from the configuration file

Referensi


Pranala Menarik