Jellyfin Forum
Wake server when client starts - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Wake server when client starts (/t-wake-server-when-client-starts)



Wake server when client starts - CypherMK - 2024-03-16

Hi, new user of jellyfin here.

I'm trying and using jellyfin on multiple devices, like my laptop, android phone and LG TV. They all need to connect to the jellyfin server to be able to play something. The server is a regular PC with multiple drives and it's in sleep mode during the day. Wake on lan is working to wake up the PC.

Now I've read that WOL won't be implemented on the client side, which seems odd to me. But anyway, how can I automatically wake up my server when I want to use jellyfin on any of my devices? I can do it manually, but for the rest of the people in my house it's not very user friendly. Any other ways I did not see to make this work?

Thanks.


RE: Wake server when client starts - Efficient_Good_5784 - 2024-03-16

You'll have to find a 3rd party program to do this for you, or code it yourself. How would the Jellyfin server send the PC it's running on a wake signal if it's in a sleep state? The one in charge of knowing when a client starts would be the Jellyfin server, which is asleep. Each client would need code to figure out how to send the wake signal to your PC by itself.

Are you putting the PC to sleep to save power? You would have an easier time with this issue if you build a new power-efficient server to run 24/7.

Jellyfin is server media software. It's meant to run constantly to "serve" clients at all times. It needs to be awake to understand when a client needs it.


RE: Wake server when client starts - CypherMK - 2024-03-16

I'm coming from Kodi where kodi wakes up the server with the files by sending a wake on lan packet.

So in case of Jellyfin I was assuming that the clients could wake up the Jellyfin server when they needed access to the files. Would be such a basic feature and big improvement. And it saves power on any server people may use.

And unfortunately I can't code.


RE: Wake server when client starts - swampweedsmoker - 2024-04-04

I'm confused that everybody in this forum says that this thing is not working.
For me it works out of the box. My setup is similar to yours, I guess.

My Jellyfin server is a clean Win10 installation. (WOL is active in the BIOS)
The PC is connected via LAN to a fritzbox.
All I did is changing the PCs ethernet ipv4 settings to use a static ip.
Set a subnetmask like 255.255.255.0 and set your standard gateway.

When starting a jellyfin client it wakes the PC automatically. (its idling while the PC is booting up)
This works with all clients. I'm using the smartphone app; the android tv app (on my nvidia shield); the jellyfin media player on some other pcs in my house and also with the jellyfin for kodi plugin on my nvidia shield.
To prevent entering sleep mode while streaming I use an app called coffee which runs in the background (I set a download threshold of 10 kb/s).


RE: Wake server when client starts - Efficient_Good_5784 - 2024-04-04

(2024-04-04, 08:40 AM)swampweedsmoker Wrote: I'm confused that everybody in this forum says that this thing is not working.
For me it works out of the box. My setup is similar to yours, I guess.
Waking up the Jellyfin server from a sleep state is possible, just not directly by the Jellyfin server itself when it's asleep.
OP states that he read WOL will not be implemented on the client side, so a 3rd party program will need to be used to send the wake packet to the server/computer.

In your case, it looks like your devices already handle this and wake your Windows PC just fine. Jellyfin isn't doing any of the waking up part, that would be your individual devices. All the clients do is search for a server to communicate with.


RE: Wake server when client starts - CypherMK - 2024-05-15

(2024-04-04, 08:40 AM)swampweedsmoker Wrote: I'm confused that everybody in this forum says that this thing is not working.
For me it works out of the box. My setup is similar to yours, I guess.

My Jellyfin server is a clean Win10 installation. (WOL is active in the BIOS)
The PC is connected via LAN to a fritzbox.
All I did is changing the PCs ethernet ipv4 settings to use a static ip.
Set a subnetmask like 255.255.255.0 and set your standard gateway.

When starting a jellyfin client it wakes the PC automatically. (its idling while the PC is booting up)
This works with all clients. I'm using the smartphone app; the android tv app (on my nvidia shield); the jellyfin media player on some other pcs in my house and also with the jellyfin for kodi plugin on my nvidia shield.
To prevent entering sleep mode while streaming I use an app called coffee which runs in the background (I set a download threshold of 10 kb/s).

That's how I set it up exactly. Also using coffee for a long time.

But starting the smartphone app or the LG tv app does not wake the server.