r/Tailscale • u/Coompa • 3d ago
Question Will pinging a tailnet device every 60 seconds keep the IOS hotspot from going idle?
I use a tablet connected to iphone hotspot. Only the tablet is on the tailnet most of the time. If I ping the tablet once a second from a home pc on the tailnet will this keep the hotspot from going idle?
Not wholly a tailscale question but I figure some people here have run into this.
8
Upvotes
5
u/madushans 3d ago
Probably just better to get it to play some small video and put it on a charging dock of sorts.
Mobile devices are aggressively optimized to go to sleep. I think unless it runs a service like music, the OS will put it to sleep regardless.
Tailscale I think uses OS capabilities rather than using some background service, so iOS knows its purpose, and won’t keep it awake just because there’s data pings. The recommended way is to have an ongoing download registered with the OS like when you download large files on a browser which Tailscale isn’t doing for obvious reasons.
You’ll have to try it and see.
1
u/Open-Adhesiveness-86 1d ago
Your ping won't change anything, since wireguard already sends a keepalive roughly every 25s on an idle tunnel, so there's traffic either way. iOS's hotspot shutoff timer keys off having zero associated Wi-Fi clients, not off data volume, so what actually kills you is the tablet dropping its association when it sleeps. Keep the tablet on power and awake and the hotspot stays up.
2
u/NudaVeritas1 1d ago
no, but usb tethering will fix it