jellyfin-mpv-shim
jellyfin-mpv-shim copied to clipboard
Local network address change causes mpv shim not to find server
I have jellyfin server on my old laptop. After restarting it, mpv shim could not connect to server. After checking a little bit, I found that ipconfig on win 10 gave me a different address than I used. When I tried that it worked.
So my suggestion is can we not check available ip address and detect if one of them has a jellyfin server and if it has, use the existing login data to server and directly show media to user.
That would introduce a serious security vulnerability, as it would enable anyone on your network to steal your Jellyfin credentials.
If you want to connect to a server you are running on the same machine, use localhost. If your server IP is changing, either use dynamic DNS or set a static IP address.
I will try a static ip address thanks.
A quick thought. Accept a local computer name. Eg. \myJellyServer as a url. If address starts with \ then fetch ip from \myJellyServer and replace it.
You should be able to put in something like myJellyServer.local to have that result, although I have not tested it. Really though, a static IP will eliminate so many frustrations with this.
Me neither, I use static IP's. It was just a thought for those who are used to type "\ \ pcname" on windows.
so far static ip has been good, except once mpv shim couldn't find and then I signed out and signed in again then it was fine
It could be that there was no network connectivity. There is an option in the config to retry for a certain amount of time, but the default is to fail fast.