1. Unzip to install
On Linux or Mac OS X you can unzip ngrok from a terminal with the following command. On Windows, just double click ngrok.zip to extract it.
$ unzip /path/to/ngrok.zip
2. Connect your account
Running this command will add your authtoken to the default ngrok.yml
configuration file. This will grant you access to more features and longer session times. Running tunnels will be listed on the status page of the dashboard.
$ ./ngrok authtoken 7uCuGHWEbTQrp49DoBPss_2C4St7BsPPtSPKkQWyZva
3. Fire it up
Read the documentation on how to use ngrok. Try it out by running it from the command line:
$ ./ngrok help
To start a HTTP tunnel forwarding to your local port 80, run this next:
$ ./ngrok http 80
网友评论