Skip to content

⏫ Bash script to start ngrok on a given port and display the URL's to it

License

Notifications You must be signed in to change notification settings

NullDev/ngrok-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ngrok Starter

Bash script to start ngrok on a given port and display the URL's to it

This script is able to start NGROK (https://ngrok.com/) and display the URL's to the Public Tunnels

Why?

This script can be used to automate processes like launching an ngrok tunnel on boot.
There are two main variables declared:

  • LNK_HTTP
  • LNK_HTTPS

They can be used to pass the public links to other script or perform operations with them.
The script can also be used to launch ngrok directly from your desktop without opening up a terminal.

The project is done and working. Still need to optimize the startup...

How to use:

Clone this repository:

    $ git clone https://github.com/NullDev/ngrok-starter.git && cd ngrok-starter

Make the script executable:

    $ chmod +x ngrok.sh

Edit the script in your favourite editor (for example nano or gedit)

    $ nano ngrok.sh

Then set the path where the ngrok binary is located, at:

    NG=/your/path/to/ngrok

If you want to open another port other than 80, set it here:

    PT=80

Run it:

    $ ./ngrok.sh

Thats it!



       Screenshot       

scr1

About

⏫ Bash script to start ngrok on a given port and display the URL's to it

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages