Access your localhost from anywhere with NGROK!
Rudra Pratap
Posted on July 4, 2023
When you make apps be it Nodejs or React, you use localhost server to see your development progress in realtime.
Now suppose you have a remote team (or a friend) with which you want to share your progress in realtime. How would you do?
You will probably use Google Meet or any screen sharing service to show your work. But this is not efficient because they can't access your localhost because it is not publicly available.
And if you are thinking that you will host the app on a web hosting service, make it live and then share the public url, then my friend it is very inefficient and time consuming.
In this article, I will share a wonderful tool you can use to achieve this purpose.
NGROK
NGROK is a tool used to tunnel your localhost to a live url.
Steps:
- Go to ngrok.com and signup. After registering you will get a auth token.
- Download the zip file for your respective OS.
- Unzip the file and run the executable
- Type the following command (replace token with yours)
- To start a HTTP tunnel forwarding to your local port 80, run this next (replace the port number with the port of your localhost on which your app is listening):
- You will get a url which can be opened from anywhere and the url will show the web page served by your localhost server.
Posted on July 4, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024