Server keeps on disconnecting

Author: edencheungCreated Jan 28, 2021Updated Feb 1, 2026

I always get this error around a few hours/days after I host my bot:

Error: connection refused: localtunnel.me:38261 (check your firewall settings)

Is there a way to fix this problem? I did some research and saw that it was because of bad connectivity of the localtunnel servers. Is there anyway I can listen to this error or catch this error and reconnect to localtunnel after this? It has been an hassle trying to sort this out and have caused a lot of problems. Thanks.