nsainfreek

Wake Server When Accessing Network Shares

11 posts in this topic

I posted this on a different forum but was told to try and present the question here as the people here may be more knowledgable. I don't run WHS but was hoping you guys could still help me. I'm running Windows 7 Ultimate with a DIR-665 Router and have also tried a Netgear WNDR3700 Router.

I have a server with all my movie files and I would like to share them with other computers on my network. The other computers would mount network shares on their computer in order to access the server. However, the server is not accessed most of the times since it is a home server and I would like it to go to sleep when not in use. I could enable Wake-On-Lan, but that is an extra step to send a magic packet to wake the server up. I would like the server to wake when someone attempts to access one of the network shares.

There is the option of waking on ping, which would wake the server whenever there is any attempted communication. This is probably the path I want to take. However, with this option on the server wakes after just two minutes of going to sleep and does not go back to sleep. After reading a lot of threads on the web, it seems the router is doing an arp refresh (not sure if that's the right terminology). The router is asking "who has this ip address" and it hits all the computers on the network, which wakes the server. The router does this like every 2 minutes. Some people online have said that they got wake on ping to work properly but those were old threads and I couldn't get any answers.

Anyway, I've tried assigning static IPs on the network, shutdown the dhcp server, and bought a new router. Computer is still waking up shortly after going to sleep. I read somewhere that you can edit the arp table so that it doesn't bother the computer, but I'm not sure if that's possible since I have found no documentation of editing arp tables on routers.

Does anyone know if and how this can be done? Any response would be useful thanks.

Share this post


Link to post
Share on other sites

Upgrade to a WGS Supporter Account to remove this ad.

You'd need to connect to the router through telnet and create a static ARP entry for the WHS IP using arp -s. Whether or not that will survive a reboot is doubtful though.

Never heard of Wake-On-Ping - learn something everyday :)

Share this post


Link to post
Share on other sites

You'd need to connect to the router through telnet and create a static ARP entry for the WHS IP using arp -s. Whether or not that will survive a reboot is doubtful though.

Never heard of Wake-On-Ping - learn something everyday :)

So you're saying that if I create a static ARP entry the router would probably fail to boot? That's probably not what I want to do then. Any other ideas? I thought that other people may be trying to accomplish such a setup to have a mix of 24/7 accessibility, ease of use, and power savings. Apple has it's Wake-on-demand functionality which works by having the router send the magic packet while using bonjour to broadcast the services of the server. This would work except Mac's aren't really expandable (beside the Mac Pro) and I have around 10 HDs running in my server.

Is it possible to do something where if you try to access a network drive it auto sends a magic packet?

Share this post


Link to post
Share on other sites

The apple thing sounds most cool. What I mean is that the static arp cache entry won't survive a router reboot, i.e. it will go back to being dynamic when you reboot the router for any reason.

Wake-On-Lan is just a packet with the MAC address repeated six times; I think the best you'll end up with is a scheduled task to send a wakeup packet periodically when the machine is on (or at logon) using the Windows task scheduler. I'm increasingly finding uses for a super-low-power box running from flash, and this is one example. It could sit there on the LAN, and send a WoL packet when it spots an arp request to the specified IP address (arp is the very first packet that will be sent when you try to make the connection and, since it's a broadcast, can easily be detected). I a netbook might fit the bill, but the packback period would be quite long.

Share this post


Link to post
Share on other sites

Thinking about this some more an agent could easily be devised to run on the PC itself, bypassing the need for the centralised monitoing box. But not be me unfortunately :(

Share this post


Link to post
Share on other sites

The apple thing sounds most cool. What I mean is that the static arp cache entry won't survive a router reboot, i.e. it will go back to being dynamic when you reboot the router for any reason.

Wake-On-Lan is just a packet with the MAC address repeated six times; I think the best you'll end up with is a scheduled task to send a wakeup packet periodically when the machine is on (or at logon) using the Windows task scheduler. I'm increasingly finding uses for a super-low-power box running from flash, and this is one example. It could sit there on the LAN, and send a WoL packet when it spots an arp request to the specified IP address (arp is the very first packet that will be sent when you try to make the connection and, since it's a broadcast, can easily be detected). I a netbook might fit the bill, but the packback period would be quite long.

So If I input a static arp entry into the router, it'll be ok as long as I don't reboot the router? And I could just reinput the arp entry if the router was to ever need rebooting, correct? Do you know where I could look for instructions to access a router via telnet?

Scheduled task wouldn't work well for me since the system is not used at regular time intervals. What would need to be created to send a WOL when an arp request to a specified IP is sent out? Would it be a process or program? I'm not sure what you mean when you say "running from flash." Are you talking about a flash program?

Thanks for your responses so far!

Share this post


Link to post
Share on other sites

Yes the router would be fine. Scheduled tasks can be set to run at logon and periodically (say every 5 mins).

Running from flash, as in a USB flash drive instead of a hard disk for an uber-low-power PC.

Re my agent idea, yes a compiled program that monitors the LAN (like Network Monitor does) and, when it sees the packet, sends a WoL packet. Maybe something like ArpAlert could be adapted, I might have a ponder on this over the weekend as it would be highly useful for me...

Cheers!

Share this post


Link to post
Share on other sites

Yes the router would be fine. Scheduled tasks can be set to run at logon and periodically (say every 5 mins).

Running from flash, as in a USB flash drive instead of a hard disk for an uber-low-power PC.

Re my agent idea, yes a compiled program that monitors the LAN (like Network Monitor does) and, when it sees the packet, sends a WoL packet. Maybe something like ArpAlert could be adapted, I might have a ponder on this over the weekend as it would be highly useful for me...

Cheers!

Alright, i'm going to try and see if I can figure out how to telnet into my router and make an arp entry. If you figure anything out, please let me know. Thanks!

Share this post


Link to post
Share on other sites

Well, I can't figure out how to input a static arp into the router. First off, I can't figure out how to telnet into the Dlink Dir 665. I managed to telnet into the Netgear wndr3700 but it won't let me create a static arp. When i use the "arp -s" command it doesn't seem to do anything. Any other recommendations would be appreciated.

Share this post


Link to post
Share on other sites

Hi nsainfreek

I know this is an old thread but did you ever get anywhere with your wake on demand.

I've just installed WHS 2011 and would love the server to be able to make when a request is made by my Sonos or Apple TV2.

Does anyone out there know how to make this work?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now



Upgrade to a WGS Supporter Account to remove this ad.



  • Posts

    • I've got the same problem and used that utility C:\Program Files\Windows Home Server\WHSOOBE.exe. It continue the server installation from entering server name, password, password hint and etc...
    • I used the database repair and clean up that are part of WHS program under settings (2nd photo). I have placed an order for two 2tb external hard drive to connect to my system so I can select to remove the drives one at a time from the system to do a reformat on each to check them. They will be here in a week if that does not work I plan to delete all the existing backups and starting with a new backup of the 2 computers connected to it. It will probably take a while as my current setup (1st photo) is the original 500 gig boot drive that original came with it and 3 internal 2 tb hard drives  plus a 4 slot esata system each with a 2 tb drive and 2 usb 2 tb plus the 2 I am going to be adding so the current total backup capacity is 16.83 Tb with me adding another 4tb. So it may be a while before I can get through all the drives. Will report back how I make out once I am done. If anyone knows a quicker way feel free to let me know. 
    • Hi guys. Resurrecting this thread, as we're coming up on 3 years...and well, life got in the way and I never managed to do any upgrades. I guess the good news is my HP LX195 is still humming as-is. I've since migrated most of my family's data (wife, 5 kids) to their OneDrive accounts, and cross-shared their drives with each other so it's a virtual home network out in the cloud. Not the fastest performance but it beats worrying about backups. Essentially now the only thing I rely on the WHS v1 box for is its Whiist add-in. We still to this day reference our old FrontPage-created family website with pages of the kids' growing up. I'm not into Farcebook or social networking so don't plan to migrate that anywhere anytime soon. QUESTION then - I was thinking of using these holiday discounts to buy a small workstation (again) to do some of the "faster" type of local filesharing we need (photo editing, etc.) But - is there any current Whiist-like solution (basic webserver tools) available in Windows 10, or even Windows 2012/2016 Essentials that I can migrate the directories to? Advice appreciated. Thanks and glad to be back... ENV  
    • What do I need to know? I'm just so tired of all the stupid Windows irritating nonsense and want something that just works without my constant attention.  I currently run WSE2012R2 + Stablebit Drivepool with 3x4TB drives (WD Reds) and external backups on a Supermicro MB w/Core i3 with 20 GB Ram. OS is on a 128 SSD.  I run the drives on a SCSI card and it just decided to not boot off theSSD the other day, so I connected it back to the MB port. I only have one laptop, one desktop that get backed up and the DT one is always failing. I uninstall the connector, reinstall, blah, blah , blah... it  works for a while and then fails again. This makes the Client backups worthless.   I have some gremlin the hardware that causes it to reboot all the damn time, or maybes its SW, dunno.  I thought it was heat and confirmed all fans work, drives are not overheating, no smart errors.  Might be one of my external eSata boxes, not sure.  My server hardware is from 2011, so getting a bit old, but still works. WSE dashboard crashes all the time. I'm tired of looking at logs to fix it.  I want/need NAS (Synologoy) to work with Plex via a Roku.  I also use a Squeezebox (2), but they are failing and I am about to give up on them for music streaming.  I also use Chromecast in the house.  So I guess Plex for both music and movies/videos is the plan.   Also, want the NAS to work with security cameras.  Which Synology Do I get?  I think I want a 4 drive minimum unit. Do I need a 'Play' one, or not?  What else? I have plenty of hard drives. I can budget $1K if needed, but half that sounds better to me.        
    • so is there anything listed anywhere for addins? I just cant find anything on google.
  • Popular Contributors

    Nobody has received reputation this week.