Ive been using ngrok to test an app on my phone, with react-native for the past 2 weeks. And so far its been pretty decent and quick.
Until today. Now it suddenly takes about 50 seconds for a request to make a roundtrip from my phone, to my localhost and back. Or from my browser, to the ngrok tunnel, back to my localhost.
At first I thought, ok ngrok is either down or experiencing slowdowns. But then I decided to hit it with Postman, and with that the request is fast. Around 0.5 seconds. Same when I access the tunnel stats. A replay request is like 1second.
Just when I do it over my phone, or browser its now extremely slow. Is there any specific reason this may suddenly be occuring? Can anyone shed any light on where I should even begin looking?
I've tried rebooting, and flushing DNS, to no avail.
Problems using Ngrok One of the new limits is a session expiration time of 2 hours. When an Ngrok connection reaches this length it stops working, and the only way to restore it is by stopping and restarting the ngrok command, which causes a new randomly generated URL to be used.
There are limits for users who don't have a ngrok account: tunnels can only stay open for a fixed period of time and consume a limited amount of bandwidth. You can always restart your tunnel to reset the limits, or you can remove the limits by signing up.
If you sign up for an account on ngrok.com, whether free or paid, you will have tunnels that run with no time limit (aka "forever"). It is only limited to 2 hours for anonymous sessions, but if you sign up on the website and use an ngrok authtoken associated with that account, you will have no time limit.
Ngrok is a legitimate remote-access tool. It is regularly abused by attackers, who use its capabilities and reputation to maneuver while bypassing network protections.
This can be optimized by selecting the datacenter closest to you. If you are for example from Germany, so you should be using the EU region to minimize any latency. To start your tunnel using the --region tag:
ngrok http --region eu <port>
Here's more about the global datacenter regions: https://ngrok.com/docs#global
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With