Ngrok: ubuntu

From OnnoWiki
Jump to navigation Jump to search

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

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