Skip to main content
ngrok
November 1, 2024

Installation

1
brew install ngrok/ngrok/ngrok

Setup

  1. Signup

  2. Get access token

  3. Run the following command to save the access-token in the configuration file ngrok.yml.

    1
    
    ngrok config add-authtoken ACCESS_TOKEN
  4. Run the following command to open the application to the outside.

    If the application is running on https, you must provide the full address.

    1
    2
    
    ngrok http https://localhost:8080
    ngrok http http://localhost:8080

    If it is running on http, you can only specify the port.

    1
    
    ngrok http 8080