localtunnel / server

server for localtunnel.me
https://localtunnel.me
MIT License
2.98k stars 964 forks source link

server not responding/available #167

Open FreshImmuc opened 2 years ago

FreshImmuc commented 2 years ago

I installed the server, started it, configured my domain (A record) and configured my reverse proxy (NginX) for the port 1991. I also tested it by opening the domain and it redirected me to the localtunnel website. So I think it worked. But when I try to open a connection with my client, the exposed url isn't available.

my Domain: expose.fireplanet.net server start command: image client expose (start) command: image

the Server also responded, when I opened the connection from my client: image

but when I try to reach my exposed url, it isn't available: http://tough-gecko-8.expose.fireplanet.net/ image

It is still opened so you can try it too by clicking the url above.

TheBoroer commented 2 years ago

that error means your domain's dns isnt setup right for this. Remember sub-subdomains have to also point to your servers IP for localtunnel server to work.

e.g. you're using cloudflare so you should add this A record and point it to your IP (notice the wildcard) *.expose.fireplanet.net

That also means you won't be able to use cloudflare's free auto ssl stuff since I dont think they support wildcard sub-subdomain names

FreshImmuc commented 2 years ago

Okay, I did, what you said but it is still not working. It doesn't give me the error that I got before but it just doesn't load http://slippery-sloth-21.expose.fireplanet.net/

TheBoroer commented 2 years ago

I think this might be a nginx/openresty/lua misconfiguration on your end. You need to configure nginx (or whatever is infront of the LT server) to handle that wildcard sub-subdomain and route it to the localtunnel server.

dluc commented 2 years ago

I was having the same issue and it turned out to be the firewall and the need to use --local-host param. After opening all ports from 6000 to 65535 and running lt with --local-host 127.0.0.1 everything works.