'How do I made ngrok server run forever?
I want to have my website online on ngrok 24/7, but it's session will expire after 2 hours. Is there any way to have it run forever, or any alternative software that I should use?
Solution 1:[1]
If you sign up for an account on ngrok.com, whether free or paid, you will have tunnels that run with no time limit (aka "forever").
Solution 2:[2]
If you don't care about domain address persistence and you use Discord and you want to use it just for testing, sharing it for friends to view you can use this: https://github.com/winter-b/ngrok-bot It's a Discord bot which executes shell commands every two hours to restart ngrok tunnel, get the url, and send it to the specified Discord channel. First create a Discord bot, how to here https://discord.com/developers/docs/intro, get the bot token, put the bot in your Discord server, get the channel id you want to send url's to, put the discord bot token and channel id in settings.json
run in directory
npm install
npm start
it's not perfect, but gets the job done for particular scenarios
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | user2738058 |
Solution 2 | solo4444 |