Ngrok
Hello👋, Its Rohan Kadam😊
Developing an application and testing it's at the same time is part of any software. We might need to expose our local server for testing our application. We wish to show our work to a colleague or client, or we need a secure, publicly available callback URL to interact with a web service. We could go ahead and upload your app to a hosting platform like AWS or Google Cloud, but then every time we make an update, we have to push those changes to our host server…not great. To overcome this problem we could concept called tunnelling.
What is Tunnelling?
Tunnelling is used to create a network link between two computers in conditions of restricted network connectivity including firewalls, NATs and ACLs, among other restrictions. The tunnel is created by an intermediary called a proxy server which is usually located in a DMZ.In order to achieve we used **Ngrok **Tunnelling
What is Ngrok?
Ngrok exposes local servers behind NATs and firewalls to the public internet over secure tunnels.
How does It work?
Download ngrok:- Download and run a program on your machine and provide it with the port of a network service, usually a web server.
**Connect your service:- **Connect to ngrok cloud service which accepts traffic on a public address.
Access from anywhere:- Traffic is relayed through to the ngrok process running on your machine and then on to the local address you specified.
What it's Good For?
Run personal cloud services from your home.
Demo websites without deploying.
Build webhook consumers on your dev machine.
Test mobile apps connected to your locally running backend.
Stable addresses for your connected devices that are deployed in the field.
Step 1: On Running Exe file below screen will be visible
Step 2: Exposing or Tunnelling port 8080
Step 3: On Successful Tunnelling able to see the below screen.
Note:- Above is a free version which is valid for two hours and
COMMANDS:
authtoken save auth token to the configuration file
http :- start an HTTP tunnel
start:- start tunnels by name from the configuration file
tcp:- start a TCP tunnel
tls:- start a TLS tunnel
update:- update ngrok to the latest version
version print the version string
help Shows a list of commands or helps for one command
ngrok is a command-line application, try typing ‘ngrok.exe http 80’
at this terminal prompt to expose port 80.
Conclusion:-
In the article, we tried to answers many questions related to Tunneling and especially Ngrok Tunnelling how it helps developers around the world to test the application on the real servers without deploying cloud code and built faster applications.
Please do share and like💖 if you find the article useful. Follow me on medium Rohan Ravindra Kadam and on Twitter at **rohankadam25**
Top comments (0)