localtunnel / server

server for localtunnel.me
https://localtunnel.me
MIT License
3.01k stars 976 forks source link

localtunnel-server cant see my localhost #103

Open kristianstage opened 5 years ago

kristianstage commented 5 years ago

Hi. I have installed localtunnel-server on my VPS and running bin/server --port 5000 it starts the server and looking for connections on port 5000. so far so good

then from client i run: lt --host http://mydomain.tld:5000 -s 1234 -p 80 it gets connected and i see " your url is : https://xxx.mydomain.tld "

but when i enter that link in my browser it doesnt display my localhost (xampp)

if I enter lt -s 1234 it gives me a url for https://1234.localtunnel.me which works fine and display my localhost correct.

so wonder why my own server wont do the same as client connects correctly to it

Hope someone can shed some light on this Thanks alot

Best regards Kristian

kristianstage commented 5 years ago

@defunctzombie would you be able to help me out ? :)

hsjakobsen commented 5 years ago

I'm also experiencing the same issue, except I am using it on a subdomain.domain.tld so my urls are xxx.subdomain.domain.tld.

When I access my generated URL it just shows Nginx on the subdomain server and not my localhost.

markestocapio commented 5 years ago

I'm having the same issue aswell.

When I use my own localtunnel server it shows "404". But when I use the default localtunnel.me it works perfectly.

Also i noticed. If i access my LT server, i'm able to access http://my-lt-server.example.com:47777/api/status but http://my-lt-server.example.com:47777/api/tunnels/[tunnel-id]/status will return a Not Found page.

markestocapio commented 5 years ago

Ok, I just found out after running tunnel from my dev machine.

lt --host http://my-lt-server.example.com:47777 --port 80

It crashes after a few seconds. But it doesnt show any error. Is there a way to find the error?

nkramaric commented 5 years ago

I have the same issue as @markestocapio

iiko1c commented 4 years ago

I have the same issue as @markestocapio

lefuturiste commented 4 years ago

why is it showing 404 ? any way to debug that correctly ?