How to Install Ngrok | Install Ngrok by abhishek singh
Open a terminal and follow these steps:
$ sudo apt-get update
$ sudo snap install ngrok
If the snap is not installed then:
$ sudo apt install snapd
Expose a local webserver to the internet.
Expose a web server running on your local machine to the internet. The HTTP default port is 80
$ ngrok http 80
Create an account on https://dashboard.ngrok.com then only you will be able to get the Auth Token, after logging in copy the Auth Token from here: https://dashboard.ngrok.com/get-started
the n run:
$ ngrok authtoken <YOUR_AUTHTOKEN>
How to do HTTP tunneling
Go to ngrok-stable-linux-amd64 folder (in my case it’s in Downloads/Software)
Eg: $ cd Downloads/Software/ngrok-stable-linux-amd64
$ sudo ./ngrok http 9000
If you want you can password protect your tunnel
$ sudo ./ngrok http -auth=”username:password” 9000
How to do TCP tunneling
Go to ngrok-stable-linux-amd64 folder (in my case it’s in Downloads/Software)
Eg: $ cd Downloads/Software/ngrok-stable-linux-amd64
$ sudo ./ngrok tcp 9000
Or
$ ./ngrok tcp 9000
thanks for your info
ReplyDelete