How to Install Ngrok on Ubuntu 22.04 LTS Linux | Expose your localhost to everyone | NGROK SETUP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can install and use NG rock on your Ubuntu operating system so for those of you who don't know what is NG Rock and g-rock is a tool that provides a secure tunneling to your local development environment or server so basically it allows you to expose a local server for example you are running a local server on your Ubuntu operating system and you want to expose it to the internet so basically it allows you to expose your local server that is making it accessible for testing or debugging purposes right so if you have a application which is running locally on localhost on your Ubuntu operating system you can expose it on internet and test it over internet right so let's see how we can install NG Rock so first of all open your favorite browser and search for NG Rock and the first link which will appear here will be NG Rock and when you go inside this website you will be able to see this download button here now NG Rock has a pricing model also so for developers which are bringing the new projects to life it's uh free to use that means we can test our applications and in testing phase we can use it for free but if you want to use it regularly or for Enterprise use you need to pay so we are going to use the free version here so just click on download here and then click on Linux and there are few different ways of installing uh NG rock on your Ubuntu operating system so when you will scroll down you can see this method install ngoc via snap so if you are running the latest version of Ubuntu it comes with the snap package manager and using this snap package manager you can install NG Rock very easily by using this single command which is snap install NG Rock which is uh what we are going to use so let me open the terminal just press Ctrl alt t for that and then here we are going to give this command which is snap install and G Rock but we are going to run it with the pseudo privileges so I'm going to just write sudo snap install NG Rock here and then give my ubuntu's password and then press enter which is going to install NG rock on your Ubuntu operating system so just wait for few seconds and once NG rock is installed you need to log into the ngrok website to get the authentication token right once you get this authentication token you can test it via this command which is NG Rock HTTP 80. so let's check it first and let's see what it does so I'm going to give this command and you can see it has already started the tunnel for my local host and now I can use my local host on this URL which is this one right so I can just copy this URL and open it on my browser and once I open it on my browser it's going to uh just show me this kind of interface and what it says it says error NG Rock because we haven't authenticated the NG rock using the NG rock out token right so for that you can click on the sign up button which is on the NG Rock download website itself you can see add authentication and you have the sign up button or you can click on this button also which is also going to just redirect you to sign up page here you need to give three things name email and password which is simple so let me create a new account here and once you give your email and password you will be redirected to this page which says welcome to NG Rock here you can add your role so for example I'm going to select app developer and then I will use NG Rock to access the software for example and then my own network here and then for my Developers for customers myself so I want to use it for myself right so I will just select myself and then click on continue and then you have this kind of interface here right so you can see now here that there is this command which is available which is NG Rock config add authentication and then you can give this authentication token so just copy this command and then paste it on your terminal which is going to authenticate your NG Rock right so I'm going to clear the terminal and then give this command and then press enter which is going to give me this kind of output which says authentication saved to configuration and this is the path to your NCO configuration so uh if you want to see your configuration file it's in this location so once again we are going to give this command which is ngoc HTTP 80 which means that means we are exposing Port 80 for our Local Host to the outside internet using NG Rock so I'm going to press once again enter and now this time it says you need to verify your account so there is this authentication email which will be sent to your email address and you need to click on verify before running this command so I just verified my email account by clicking on the URL which is sent by NG Rock and once again let me clear the terminal and run that command once again and this time it works so before using NG rock you need to authenticate your NG rock with your out token using this command which I have shown you which is NG Rock config add authentication and then your authentication token so you can see you are online now I can click on this uh URL so I'm going to just press control and then click on this URL which is going to open the URL on my default browser and now my Local Host Port 80 is exposed to internet so now everything is working but what's the Practical use of exposing this so let's say I'm a developer I have created a very simple server so I have the sample node.js server which is running on Port 3000. you can find this basic node.js code anywhere basically what it does is it runs on localhost Port 3000 and when I open this uh localhost Port 3008 Prince hello world and I want to expose this server which is running on my Local Host you can see 127.0.0.1 colon 3000 I want to expose this to the Internet so using the internet I want to just give this uh URL for my local server which is running locally to my friend to test it right on his computer so what I can do here is now so let me just press Ctrl C to come out of the NG Rock and here once again instead of Port 80 I can write 3000 here so NG Rock HTTP 3000 because I want to now expose the port 3000 where my server is running on the Local Host that's why I'm just giving 3000 here and then press enter and now my port 3000 is exposed to internet you have this URL here so now when I click on this URL you will see uh this kind of message and then I can click on visit website and you can see my localhost server which is running on Port 3000 is now available via this URL to others if I share this URL with my friend he can use this URL and test my local server which is running locally on my Ubuntu operating system and see how it's responding so in the development phase this tool is very useful when you want to share or test or expose your local application to internet to test something or debug something so that's how you can install and use NG rock on your Ubuntu operating system I hope you've enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge
Views: 8,686
Rating: undefined out of 5
Keywords: How to set up Ngrok on Ubuntu?, How to update Ngrok in Ubuntu?, How do I open a Ngrok file?, How to uninstall ngrok from Ubuntu?, ngrok download, ngrok github, ngrok tcp, npm ngrok, ngrok brew, how to install ngrok on kali linux, ngrok https, ngrok login
Id: Hj9GcXhRCZQ
Channel Id: undefined
Length: 10min 25sec (625 seconds)
Published: Wed Aug 23 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.