NGROK - Expose your localhost to the Internet

What is NGROK?
  • ngrok is a tool that allows you to expose your local web server to the internet. 
  • It creates a secure tunnel from your local machine to the internet, providing a public URL that can be used to access your local server. 
  • This is particularly useful for testing and sharing your local development environment with others.

Key Features of NGROK:
  • Localhost Tunneling: ngrok creates a tunnel from your local machine to the internet, allowing you to share your local web server with a public URL.
  • Webhook Testing: You can receive webhooks directly on your local machine, making it easier to test and debug webhooks from services like Slack, GitHub, and more.
  • Local Previews: Demo a website running on your local machine to clients or stakeholders without deploying to a staging site.
  • Secure Connections: ngrok provides secure connections with HTTPS, ensuring that your data is encrypted during transmission.
  • Inspection and Replay: Inspect and replay requests to your local server for fast development and debugging.


How to Use NGROK:

Download and Install ngrok: 
Go to the ngrok website and download the executable for your operating system.

Add your authtoken
Run the following command to add your authtoken to the default ngrok.yml configuration file.
ngrok config add-authtoken <auth_token_given_on_ ngrok_website>

Deploy your app online
Put your app online at an ephemeral domain forwarding to your upstream service. For example, if it is listening on port http://localhost:8080, run:
ngrok http http://localhost:8080

Copy the Public URL: 
ngrok will provide a public URL that you can use to access your local server. For example:
Forwarding http://abc123.ngrok.io -> http://localhost:80



By using ngrok, you can easily share your local development environment with others and test webhooks and other integrations without deploying your application to a live server.

Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

The Basic Structure of a Full-Stack Web App

Making GUI Calculator in Tkinter Python