Localtunnel running problem, doesn't work at all
Asked Answered
C

10

22

I installed localtunnel globaly by runnnig this command npm install -g localtunnel.

After that when I run lt --port 8080, absolutely nothing happens. Does anyone know why?

Caloric answered 23/12, 2019 at 11:34 Comment(1)
Use a Cloudflare tunnel instead: developers.cloudflare.com/cloudflare-one/connections/…Lalittah
D
20

It appears that the author isn't maintaining Local Tunnel much these days, but there was a helpful comment on the github issue dealing with this. At the time of writing this, you can generate a Local Tunnel with

lt -h "http://serverless.social" -p 8080
Dissimilate answered 10/3, 2020 at 16:30 Comment(0)
S
8

Try

lt -p 8080 -h http://localtunnel.me

And in the URL you get, replace the "https" with "http". Maybe don't open it with Google Chrome but with Safari instead, but Google Chrome might work, too.

For more information see: https://github.com/localtunnel/localtunnel/issues/332

Simony answered 28/12, 2019 at 16:7 Comment(0)
C
2

I ran into the same issue on my raspberry pi. You need to validate your npm and localtunnel installation. Check if you get valid results for npm --version. If not, reinstalling npm will fix the problem. In case you installed localtunnel locally (instead of the -g option), you may have to use the command like: npx localtunnel --port <port>

Catechize answered 23/11, 2020 at 7:25 Comment(0)
M
1

It seems like localtunnel is currently down. Click here to go to the github issues page for more information and updates

Monteria answered 17/2, 2020 at 13:12 Comment(1)
Of course you could use ngrok.io instead of localtunnel, the only difference between the two is that ngrok.io doesn't support custom subdomains in their free plan.Monteria
C
1

run this

lt -h "https://serverless.social" -p 8080

it should work

Corelation answered 24/7, 2020 at 11:0 Comment(0)
B
1

After "npm install -g localtunnel" try this:

C:\> npx lt -p 8080 -s myserver --print-requests
your url is: https://myserver.loca.lt

Or without -s param to get a random URL.

Ban answered 27/3, 2023 at 14:37 Comment(0)
C
0

I did a simple thing though insecure to host it:

lt --port 443 -h "http://localtunnel.me" -s myhost

and then in another tab:

python3 -m http.server 443

This worked for me. The consequence was that the device on which I was accessing my site showed complete root directory(I am sure there are configurations to be made to prevent this)

Cynar answered 5/1, 2021 at 9:44 Comment(0)
C
0

change the port from 8080 to 8000 the issue might be because of on port 8080 there is something already running .

Condense answered 15/7, 2021 at 21:47 Comment(0)
B
0

LocalTunnel is refusing to connect when using node 18. I've downgraded to 16 and it's working fine. I don't know the reason, but it seems to be IPv6 related.

If you're having trouble with it, try running with DEBUG:

export DEBUG="localtunnel:*" && lt --port 8080

For reference, this is the error I seen when using node 18 with the DEBUG flag:

localtunnel:client local error connect ECONNREFUSED ::1:3939 +0ms
Bracknell answered 28/1, 2023 at 21:53 Comment(0)
A
0

First Check the Error you are getting by using this command you can debug it.

command:

export DEBUG="localtunnel:*" && npx lt -p 8000 --print-requests

if you are getting ECONNREFUSED error like this:

localtunnel:client local error connect ECONNREFUSED ::1:8000

then

You can fix this problem by just running the localtunnel on host 127.0.0.1 use this command:

lt -l 127.0.0.1 --port 8080

It should work now

Aegrotat answered 3/7 at 14:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.