Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ngrok speed became slow

Tags:

ngrok

tunnel

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.

like image 1000
Kylie Avatar asked Mar 03 '16 05:03

Kylie


People also ask

How long will Ngrok last?

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.

Does Ngrok have a limit?

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.

Do Ngrok tunnels expire?

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.

Is Ngrok malicious?

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.


1 Answers

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

like image 73
Tenarius Avatar answered Oct 01 '22 02:10

Tenarius