Expose a Local Web Page with ngrok
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
-
Create your ngrok account at signup page.
-
Confirm your email verification
-
Install Ngrok following download page
brew install ngrok/ngrok/ngrok -
Get authentication token at Ngrok console “Getting Started > setup & installation”, then run the command on the page
ngrok config add-authtoken <your authentication token> -
Run Nginx
nginxAccess to http://localhost:8080/
-
Run Ngrok
ngrok http 8080 -
Check “Forwarding URL” given
-
Access to “Forwarding URL”