Goodday everyone im new here and found that zrok is really amazing service compare to ngrok/localtunnel/pagekite which can expose localhost/files to internet too.
Guides are really understandable by lowbie coder like me and its easy to follow. Tried sharing both in public&private + reserve in web/proxy to Android on Ubuntu-in-termux. Zrok speed on transfer is really great, i even got a peak of 8mbps+ for download atm compare to the other 3 service that have 300kbps-1mbps or below.
My experience is already great but i have a problem that the connection from zrok is being disconnected after a certain traffic/download has been reached (sample: i tried streaming/downloading video file worth more than 1.5gb of size then after few minutes with variations of 200mb-700mb downloaded size the connection has been disconnected.) sometimes it will reconnect but after few moments it will forced to cut the connection causing url link zrok not found and must restart the shared public/private web/proxy to make it work or active again. Is it possible to increase the lease time/data traffic to prevent the cut-off connections?
Also is there a way to keep the shares even we use the “zrok disable” and use “zrok enable token” again unless we really delete the shared backend?
And i thank you both sir Philip and sir David for previews support on my quiries😊
Sorry to hear about the disconnects. We’ll take a look and see what we can find on our end.
In the meantime, you can save yourself some headache by trying out a “reserved share”. If you create a reservation, you can stop and restart your zrok share client multiple times without creating a new identity for your share. You should not need to zrok enable/zrok disable multiple times in an environment.
You can use the zrok reserve command (see zrok reserve --help for details) to create a reserved share, and then use the zrok share reserved (see zrok share reserved --help) with the allocated share token to share. If you stop and restart the zrok share reserved command, it will not destroy and re-create your share token.
Share tokens do not surive zrok disable, however. You definitely should not need to zrok disable and re-zrok enable to clear up connectivity issues. If that’s the case then something truly strange is going on.
These kinds of messages about closed connections and latency issues:
[ 546.371] ERROR sdk-golang/ziti.(*contextImpl).connectEdgeRouter.func2.3: no read traffic on channel since before latency probe was sent, closing channel
…are usually indicative of some kind of underlying internet connectivity issue. Is it possible that your ISP or some sort of firewall between yourself and the zrok.io service is unhappy with this traffic/rate?
Thanks for replying sooner sir michael. Yes sir i am already using the reserve command. Its really amazing feature that is almost a private cname dns already although they can be destroyed and cannot be recovered after using the zrok disable which was my test. Due that i have multiple android device that i setup to test zrok and other use case. Hoping that there will be function that can recover the share token to prevent a lost url.
Sample case would be when we use the url to encode in an nfc-tag(ntag)/qrcode, is if the shared token is destroyed unless we format the ntag the tag/sticker/card/qrcode will also be useless. When the shared token is destroyed because they are dependent to the url.
How to know if its my wifi service provider that restrict these problem sir?
I just know that my provider is using cgnat that restrict me to port forward my web/proxy and this is why i lean on reverse tunneling. Although by using my wifi provider i can stream directly from streaming sites like youtube without fail/disconnection, but when i tried to stream using zrok shared url this is the case that cuts the download/stream.
These kinds of problems can be very difficult to diagnose, and I’m just going off the log snippet that you sent… but that log snippet looks to me like the connectivity is being terminated out from underneath zrok and OpenZiti underneath.
It might also be something else. Will continue to think about it.
We might consider changing the “scope” of a reserved share in a future zrok release. Right now shares are scoped to be owned by the “environment” (the thing that gets created when you zrok enable), so when you disable your environment any attached shares (reserved or otherwise) are removed. Maybe in a future release we’ll look into scoping reservations to the account.
There are already a couple of related issues that could be related to re-scoping reserved shares: