DEV Community

Jun Ueno
Jun Ueno

Posted on • Edited on

Publish a website using by Ngrok

Written with Cameron Gibson

Versions

Homebrew 3.4.7
Nginx 1.21.6
Ngrok 3.0.2

About Ngrok

  • A tool that makes the specific port of local machine public on internet
  • Pricing: Free for personal use
  • Official website: https://ngrok.com/

Make your local port public to the internet

   brew install ngrok/ngrok/ngrok
Enter fullscreen mode Exit fullscreen mode
   ngrok config add-authtoken <your authentication token>
Enter fullscreen mode Exit fullscreen mode
  • Run Nginx
   nginx
Enter fullscreen mode Exit fullscreen mode

Acess to http://localhost:8080/

1

  • Run Ngrok
   ngrok http 8080
Enter fullscreen mode Exit fullscreen mode

2

  • Check "Forwarding URL" given
  • Acess to "Forwarding URL"

3

Top comments (0)