Harry1992
Harry1992

Reputation: 469

Localtunnel alternative not working

I connect my app to Localtunnel. It was working very well until last week, but now it's not working:

this error comes

Upvotes: 5

Views: 13454

Answers (6)

Fahad Ali
Fahad Ali

Reputation: 65

Use termux and get better result otherwise you can do this make javascript file

const localtunnel = require('localtunnel');
(async () => {
  const tunnel = await localtunnel({ port: 8000 });
  console.log(tunnel.url);  
  tunnel.on('close', () => {
  });
})();

Save it and run node filename.js

It should work By the way it's not work in android cause it's comes with openurl which is not for android you have to change ta script then ...so use this code you will get better result

Upvotes: 1

Philzace
Philzace

Reputation: 266

lt -h http://serverless.social -p 3000 

This was a quick fix that I found, and it works well

lt -h http://serverless.social -p 3000 --subdomain charls 

Will also let you have a custom subdomain name.

Upvotes: 3

DarekW
DarekW

Reputation: 31

I tried:

npx localtunnel --port PORT and lt --port PORT

(with proper for me number of the port in place of "PORT")

and didn't receive a response for a long time in both attempts. I found here: Use backup host lt -h "http://serverless.social" -p PORT if site is down info about the backup host, this works for me:

t -h "http://serverless.social" -p PORT

Upvotes: 0

Nikas
Nikas

Reputation: 247

Try localhost.run it works well and require no additional installation.

Upvotes: 2

Abhishek Sengupta
Abhishek Sengupta

Reputation: 3301

Try ngrok : https://ngrok.com/

Its free and very easy to use...

For windows just extract the zip and run the exe file and type:

ngrok http 3000

note : 3000 or any other port number on which your local host is running on.

Upvotes: 1

Chris
Chris

Reputation: 137097

Edit: Localtunnel appears to be working again. (Of course depending when you're reading this it may not be. Please use your own judgment.)

Original answer:

The cloud-hosted part of Localtunnel is currently down. You'll have to wait until its maintainer brings it up again, or use another service like ngrok.

Some more issues tracking this:

Upvotes: 3

Related Questions