angelobreuer / localtunnel.net

.NET implementation of a tunnel client for localtunnel.me.
MIT License
124 stars 31 forks source link

Localtunnel dotnet global tool looses connection after some time without use #21

Open jyanez73 opened 1 year ago

jyanez73 commented 1 year ago

Hello, When some time passes I guess the server drops the tunnel and the connections through subdomain.loca.lt stop reaching the localhost. I'm using the command: localtunnel --subdomain test2 -p 44888 https

The console doesn't show any error stating that the tunnel is down. It would be nice the the cli gets notified or makes some pulling to check if the tunnel is still alive and reconnects it.

sundayScoop commented 1 year ago

I get this error as well. Might be something to do with the fact that the JS client frequently sends keep-alive packets, while the .NET client does not. Trying to figure out why.

angelobreuer commented 1 year ago

Probably https://github.com/angelobreuer/localtunnel.net/tree/fix/angelobreuer/tcp-keep-alive could solve this issue. I haven't experienced this issue by myself even after multiple hours of testing.