Share Your Local Server with Ngrok

Learn how to share your local server with Ngrok.

Steps to share your local server with Ngrok

More Information

  1. Sign up for Ngrok

  2. [Optional] You can free claim 1 subdomain from Ngrok

  3. Download ngrok packages based on your OS.

  4. Unzip to install

    tar -xvzf ngrok-v3-stable-linux-amd64.tgz
  5. [Optional] Copy to /usr/local/bin

    cp ngrok /usr/local/bin
  6. Connect your account

    ngrok config add-authtoken <auth-token>
    • The auth-token saved to configuration file: /home/<username>/.config/ngrok/ngrok.yml
  7. Start a HTTP tunnel forwarding to your local port 80

    ngrok http 80
    ngrok http --domain=<domain-name> 80
  8. Go to your browser and type your domain name.

Written by

KarChunT

At

Fri Mar 28 2025