jellyfin-mpv-shim icon indicating copy to clipboard operation
jellyfin-mpv-shim copied to clipboard

Local network address change causes mpv shim not to find server

Open okan35 opened this issue 4 years ago • 7 comments

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.

okan35 avatar Sep 05 '20 08:09 okan35

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.

iwalton3 avatar Sep 05 '20 10:09 iwalton3

I will try a static ip address thanks.

okan35 avatar Sep 05 '20 21:09 okan35

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.

michael9dk avatar Sep 07 '20 16:09 michael9dk

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.

iwalton3 avatar Sep 07 '20 16:09 iwalton3

Me neither, I use static IP's. It was just a thought for those who are used to type "\ \ pcname" on windows.

michael9dk avatar Sep 07 '20 17:09 michael9dk

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

okan35 avatar Sep 07 '20 19:09 okan35

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.

iwalton3 avatar Sep 07 '20 19:09 iwalton3