Localtunnel: Disconnects automatically after very short time

Created on 1 May 2016  路  9Comments  路  Source: localtunnel/localtunnel

No error is thrown, but my localtunnel disconnects automatically after an incredibly short period of inactivity. It seems to disconnect in under 1 min of inactivity - which makes it very difficult to develop with. Is there any way to disable/increase this timeout?

Most helpful comment

create as bash script like try.sh with

#!/bin/bash
lt --subdomain testratesyapp --port 3000

and then run watch n30 ./try.sh so this runs the try.sh every 30 sec
and it worked for me with a constant subdomain

All 9 comments

create as bash script like try.sh with

#!/bin/bash
lt --subdomain testratesyapp --port 3000

and then run watch n30 ./try.sh so this runs the try.sh every 30 sec
and it worked for me with a constant subdomain

Duplicate of "the server is not running persistently #111" https://github.com/localtunnel/localtunnel/issues/111

i did the following on my OSX with this issue,
it simply checks every 30 secs, if the app closed, it re-runs it 馃憤

!/bin/bash

while :;
do
clear
date
/usr/local/bin/lt --subdomain (UR DOMAIN) --local-host 127.0.0.1 --port 80
sleep 30
done

I use a crontab to restart it every 15m, works for me.

*/15 * * * * cd /home/work/supervisor && supervisorctl restart localtunnel

Can some 1 explain me how to do this?

And author thinks this is better than ngrok???

And author thinks this is better than ngrok???

@sergeyganago relax, Where do you see me saying it is better than ngrok or forcing anyone to use this? I made this project because I had a random idea on how to do local server exposure with nodejs, that's it. Please take your negative shit comments elsewhere.

And author thinks this is better than ngrok???

For free users: Yes. I'm creating a messenger bot and it needs a persistent url.

@si458 I don't think your script will check for anything. It just simple does what watch does. Run lt every 30 secs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sksar picture sksar  路  6Comments

jorenjamar picture jorenjamar  路  7Comments

vlad-groznov picture vlad-groznov  路  5Comments

vicjicaman picture vicjicaman  路  3Comments

SkandaBhat picture SkandaBhat  路  10Comments