DEV Community

Jun
Jun

Posted on • Edited on

3 2

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay