[User Help Wanted] - Wake On Lan support for MP2 | Page 4

Discussion in 'Testing Area' started by Brownard, January 23, 2017.

  1. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,551
    Likes Received:
    1,106
    Gender:
    Male
    Ratings:
    +2,377 / 21
    Home Country:
    Germany Germany
    Show System Specs
    No.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Lehmden
    • Team MediaPortal

    Lehmden Retired Team Member

    Joined:
    December 17, 2010
    Messages:
    11,807
    Likes Received:
    2,143
    Gender:
    Male
    Location:
    Lehmden
    Ratings:
    +3,605 / 28
    Home Country:
    Germany Germany
    Show System Specs
    Hi.
    My personal solution is to use the Plugin "AppLauncher" to send a MagicPacket to the NAS where my movies are stored. So I can wake the NAS from within MP2 whenever I want. And I also can send it back to sleep with AppLauncher...
     
  4. happyf1sh

    happyf1sh Portal Member

    Joined:
    August 26, 2007
    Messages:
    43
    Likes Received:
    11
    Ratings:
    +15 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hello @Brownard,
    On my testing I found that WOL works when I start the MP2 client program. If I wake the client from suspend (MP2 running) then the WOL does not wake the server.
    Hope this makes sense.
     
  5. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,908
    Likes Received:
    783
    Gender:
    Male
    Ratings:
    +1,314 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Thanks, it looks like it tries to wake the server before your network adapter has initialised/connected. I'll look into handling this more gracefully.
     
  6. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,551
    Likes Received:
    1,106
    Gender:
    Male
    Ratings:
    +2,377 / 21
    Home Country:
    Germany Germany
    Show System Specs
    @Brownard , lots of people are asking whether this plugin can also wake up machines that host shares (other than the server).

    I could imagine that your current design could be expanded, however, we would then need to make this configurable: for every user wanting all his shares to be automatically available, there will be another who doesn't. Also, if we (well, you..) decided to expand the functionality, it would require a GUI with individual settings, helper texts, translations, ...

    In short: should I add a Jira for this?
     
  7. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,908
    Likes Received:
    783
    Gender:
    Male
    Ratings:
    +1,314 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    @Testers new version added to first post. I managed to get the client to resolve the server hardware address directly for both IPv4 and IPv6 addresses so the server plugin is no longer necessary and has been removed.

    @azzuro would be good if you could test to see if it's still working in your environment ;)

    @happyf1sh The plugin should now wait for the network connection to become available before sending the WOL packet (by default it will wait for up to 20 seconds). Hopefully this will fix your issues when waking the client.

    This is next on the TODO list.
     
    • Like Like x 3
  8. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,380
    Likes Received:
    2,467
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,123 / 13
    Home Country:
    France France
    Show System Specs
    tested quickly,
    the hardware adresse is :
    <HardwareAddress>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</HardwareAddress>
    but it seems to take the IPv6 adress fine.

    it seems broken, no ?
     
    • Thank You! Thank You! x 1
  9. breese
    • Team MediaPortal

    breese Retired Team Member

    Joined:
    July 11, 2011
    Messages:
    3,903
    Likes Received:
    325
    Gender:
    Male
    Occupation:
    Sr. Systems Engineer
    Location:
    Arlington Heights, Illinois
    Ratings:
    +768 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Server V4 IP - 192.168.1.250
    Server V6 IP - fe80::4d0c:ab:5bee:6b69

    Client V4 IP - 192.168.1.100
    Client V6 IP - fe80::dc64:7e0b:b4fa:e667

    [2017-03-13 04:18:53,399] [18613 ] [AMQ 'WakeOnLanPlugin'] [INFO ] - WakeOnLanClient: Updating server hardware address for IP address 'fe80::4d0c:ab:5bee:6b69'
    [2017-03-13 04:18:53,458] [18672 ] [Thread33 ] [WARN ] - ThreadPool.ProcessQueue(): Exception during processing work ''
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
    at UPnP.Infrastructure.Utils.CompressionHelper.Decompress(IDeCompressor compressor, Stream inputStream)
    at UPnP.Infrastructure.Utils.CompressionHelper.Decompress(WebResponse response)
    at UPnP.Infrastructure.CP.DeviceConnection.OnCallResponseReceived(IAsyncResult ar)
    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
    at System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
    at System.Net.ContextAwareResult.FinishPostingAsyncOp()
    at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
    at UPnP.Infrastructure.CP.DeviceConnection.OnActionCalled(CpAction action, IList`1 inParams, Object clientState)
    at UPnP.Infrastructure.CP.DeviceTree.CpAction.BeginInvokeAction(IList`1 inParameters, AsyncCallback callback, Object state)
    at UPnP.Infrastructure.CP.DeviceTree.CpAction.InvokeAction(IList`1 inParameters)
    at MediaPortal.Plugins.ServerStateService.Client.UPnP.ServerStateProxy.GetStates()
    at MediaPortal.Common.Threading.Work.Process()
    at MediaPortal.Common.Services.Threading.ThreadPool.ProcessQueue()
     
    • Thank You! Thank You! x 1
  10. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,908
    Likes Received:
    783
    Gender:
    Male
    Ratings:
    +1,314 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Possibly, can you post a debug log, might be some conflict with your virtual cards.
    Thanks @breese, your exception is not caused by this plugin, its the server state service, they are both responding to the same server connected event which is why it appears straight afterwards. It is another issue that we need to try and get to the bottom of though...
     
  11. breese
    • Team MediaPortal

    breese Retired Team Member

    Joined:
    July 11, 2011
    Messages:
    3,903
    Likes Received:
    325
    Gender:
    Male
    Occupation:
    Sr. Systems Engineer
    Location:
    Arlington Heights, Illinois
    Ratings:
    +768 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    I also discovered with the plugin installed on the client, it takes considerably longer for the Splash Screen to go away....
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!