ShelfPlayer icon indicating copy to clipboard operation
ShelfPlayer copied to clipboard

[Feature Request] Add local url and remote url

Open Alarez777 opened this issue 1 year ago • 4 comments

I have been using some apps that have this function basically let you have 2 urls one to use locally and one over the internet. First it checks if it is local and if it can't it does it remotely. This could help a lot to the download speed this is usually done before leaving home to save data and so this would be done much faster because locally the speed is usually much higher and also decrease the dependence on the internet if you are at home. I have also seen that to make it faster add a field where you put the SSID of the wifi where you want to use it locally in this way only tries the local connection if you are connected to that SSID if you are not it goes straight to the internet url.

Alarez777 avatar Nov 26 '24 08:11 Alarez777

Highly support. Tailscale is an extremely common way to securely access self-hosted stuff while out and about, and this would enable that. Several Navidrome/Subsonic iOS apps do this already to enable easy switching.

vovchykbratyk avatar Feb 25 '25 19:02 vovchykbratyk

This isn't a general solution, but when I hosted ABS at home, I added its (external) hostname to my LAN DNS server (e.g. Raspberry Pi) with its local IP.

So abs.domain.com resolves to my Internet IP when I'm out and about, but to 192.168.0.10 when I'm at home.

It worked flawlessly, but I don't know if that's feasible with Tailscale or without a DNS server at home.

deanishe avatar Aug 27 '25 06:08 deanishe

That is a solution, although you should look out for DNS caching. Another way is to add both the local and remote URL as separate connections to ShelfPlayer.

rasmuslos avatar Aug 28 '25 21:08 rasmuslos

DNS caching

Never had a problem with that, tbh. Maybe iOS is smart enough to flush the cache when it changes DNS server, or maybe it's because the DNS entries have a very short TTL because I'm using them with my dynamic IP.

deanishe avatar Aug 31 '25 19:08 deanishe