Share your local server with Ngrok
-
Sign up for Ngrok
-
[Optional] You can free claim 1 subdomain from Ngrok
-
Download ngrok packages based on your OS.
-
Unzip to install
tar -xvzf ngrok-v3-stable-linux-amd64.tgz
-
[Optional] Copy to
/usr/local/bin
cp ngrok /usr/local/bin
-
Connect your account
ngrok config add-authtoken <auth-token>
- The auth-token saved to configuration file:
/home/<username>/.config/ngrok/ngrok.yml
- The auth-token saved to configuration file:
-
Start a HTTP tunnel forwarding to your local port 80
ngrok http 80 ngrok http --domain=<domain-name> 80
-
Go to your browser and type your domain name.