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?
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?
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
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
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>
It seems like localtunnel is currently down. Click here to go to the github issues page for more information and updates
run this
lt -h "https://serverless.social" -p 8080
it should work
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.
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)
change the port from 8080 to 8000 the issue might be because of on port 8080 there is something already running .
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
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
© 2022 - 2024 — McMap. All rights reserved.