This content originally appeared on DEV Community and was authored by ROHAN KADAM
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**
Bibliography:-
This content originally appeared on DEV Community and was authored by ROHAN KADAM
ROHAN KADAM | Sciencx (2021-12-07T14:50:57+00:00) How to use Ngrok for tunnelling the local servers?. Retrieved from https://www.scien.cx/2021/12/07/how-to-use-ngrok-for-tunnelling-the-local-servers/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.