ngrok speed became slow [closed]
Asked Answered
A

1

21

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.

Achromatism answered 3/3, 2016 at 5:59 Comment(9)
They are announced closing their free plan, so it seems, that it could be related. I have the same issueDrivel
seeing the same thing, +1Singlehanded
still happening on the paid plan...Singlehanded
I have the same problem. Did you find a solution?Araby
Lol did you guys get anything?Picro
Same here in 2020 .------.Kashgar
same (2021) 15charSpoonful
Similar experience in 2021. Even with the upgraded account.Elastin
Maybe the network bandwidth from the exposed server was too low. However with 500MBi speed, I would assume to work.Elastin
C
16

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

Cellophane answered 30/6, 2021 at 20:13 Comment(2)
Also adding the --inspect=false flag helps to improve the speed.Hagiographa
Now ngrok needs two "-" for the property to work. This would be the correct: ngrok http --region eu <port>Addington

© 2022 - 2024 — McMap. All rights reserved.