Open anthonyeric-son opened 1 year ago
WAIT! I think I found the culprit.
When I ran the Localtunnel server with DEBUG=*
option, I saw that it was also creating a new listening server with a dynamic TCP port after my local tunnel connects:
localtunnel:server making new client with id device +0ms lt:TunnelAgent[device] tcp server listening on port: 42071 +0ms <------- lt:ClientManager removing client: device +0ms lt:TunnelAgent[device] closed tcp socket +1s lt:TunnelAgent[device] closed tcp socket +0ms
But on the cloud server, I only opened the port 1234 in ufw.
When I disabled ufw, everything started working! I'll continue playing around
@anthonyeric-son I'm experiencing a similar issue with AWS. I use EC2 for the server and Route 53 for DNS records, which are directed to the ALB with ACM for HTTPS. Sub-domains function properly when using the EC2 instance's IP address, but encounter issues when utilizing the ALB for HTTPS support. Security Group rules permit traffic from all sources. I would appreciate any assistance. I have been unable to resolve this for 10 days.
SETUP
I have my own copy of the tunnel server running on a cloud server (vultr.com). I already have a wildcard domain assigned to the cloud server (e.g. *.mydomain.com).
The Localtunnel server is running with the following parameters:
I am able to confirm the server is accessible via the domain name:
NOTE: The "mydomain" is not the real domain. Not sure if I'm at liberty to give out the real domain name. But for the sake of describing my problem, I think it should suffice.
On my local machine, I run the localtunnel client with the following parameters:
On the server side, the console log is updated:
Also, on my local machine, I have a simple http server running on port 8181
PROBLEM
When I try to access the simple http server using the url, generated by the localtunnel client, i.e.:
I get a 404 response.
QUESTION
Are there any other settings I need to do on the cloud server to get this working? Perhaps there are some parameters I missed?
I tested using your default server:
And this one works without any probelms.
Thanks.