Creating A Tunnel Using Ngrok

Ngrok is a popular tool for creating secure tunnels between a local development environment and the internet. It allows developers to expose their local web server to the internet, making it accessible to anyone with the URL.

Ngrok Account Creation
  1. Go to their official website to create your account.
  2. Fill out the following fields with the needed information and click sign up.
  1. Open your email to verify your ngrok account.
Installing Ngrok in your linux os
  1. Open your terminal and type the command:
curl -s | \
  sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && \
  echo "deb buster main" | \
  sudo tee /etc/apt/sources.list.d/ngrok.list && \
  sudo apt update && sudo apt install ngrok
  1. Connect your account by adding your token to the newly installed ngrok. Your token can be found on your ngrok account.
ngrok config add-authtoken addyourtokenhere
  1. You can now start your ngrok tunnel by running this command:
ngrok http 8080
  1. The forwarding url will be the public url that can be accessed outside your host machine.
The benefits of using ngrok
  1. Convenience: Ngrok provides an easy-to-use interface that allows developers to quickly create a tunnel to their local server without having to configure complex network settings.
  2. Security: Ngrok uses SSL/TLS encryption to secure the connection between the local server and the internet, ensuring that data transmitted over the tunnel is protected.
  3. Cost-effectiveness: Ngrok offers a free plan that provides basic features and can be used for small-scale projects. Paid plans offer additional features and higher levels of usage, making it a cost-effective solution for larger projects.

Leave a Comment

Your email address will not be published. Required fields are marked *