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

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,818
    Likes Received:
    1,127
    Gender:
    Male
    Ratings:
    +2,416 / 22
    Home Country:
    Germany Germany
    Show System Specs
    Good to hear that it is working now.

    In other words, the WOL feature needs to be configurable on each client. I guess that @Brownard had planned it that way. Just not implemented yet.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,523
    Likes Received:
    2,566
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,251 / 13
    Home Country:
    France France
    Show System Specs
    @Brownard :
    i think have discovered few stuff related to my config :
    for information on my system " Client" i have many interface network :
    1 hardware
    3 virtuals ( VMware / ...)

    Set MP2 to use IPv6, don't seems to found the "hardware adress" every time.

    first on my log i have :
    start MP Client but no server :
    Code (Text):
    1. [2017-02-13 09:54:05,599] [3452   ] [14       ] [DEBUG] - WakeOnLanClient: No address stored for the server yet
    after start server :
    Code (Text):
    1.  
    2. [2017-02-13 09:56:10,715] [128569 ] [123      ] [INFO ] - ServerConnectionManager: Connected to home server '87cd5afd-ee62-4ee8-9112-6029074996b3' at host '' (IP address: 'fe80::983c:afa7:a34c:c3e4')
    3. [2017-02-13 09:56:10,740] [128594 ] [AMQ 'WakeOnLanPlugin'] [DEBUG] - WakeOnLanClient: Got server IP address 'fe80::983c:afa7:a34c:c3e4' for ''
    4. .....
    5. [2017-02-13 09:56:10,926] [128780 ] [AMQ 'WakeOnLanPlugin'] [WARN ] - WakeOnLanClient: Unable to determine hardware address for IP address 'fe80::983c:afa7:a34c:c3e4'
    6.  
    after an restart of MP2 Client ( server always ON) i can see :
    Code (Text):
    1.  
    2. [2017-02-13 10:03:41,351] [2659   ] [14       ] [DEBUG] - WakeOnLanClient: No address stored for the server yet
    3. ..
    4. [2017-02-13 10:03:49,801] [11108  ] [AMQ 'WakeOnLanPlugin'] [DEBUG] - WakeOnLanClient: Got server IP address 'fe80::983c:afa7:a34c:c3e4' for 'TVE-SRV.home'
    5. ..
    6. [2017-02-13 10:03:49,930] [11237  ] [AMQ 'WakeOnLanPlugin'] [WARN ] - WakeOnLanClient: Unable to determine hardware address for IP address 'fe80::983c:afa7:a34c:c3e4'
    about the dns, i have an error on my server, where i can't register his adress on dns, maybe an issue of my router.

    an restart of Client and now the server sleep :
    Code (Text):
    1. [2017-02-13 10:10:16,146] [2574   ] [15       ] [DEBUG] - WakeOnLanClient: No address stored for the server yet
    and nothing else,
    using wireshark, none WOL packet is send or acces to server IP is detected.

    same issue if enable IPv6 only in MP client

    Using IPV4 only
    start client only
    Code (Text):
    1. [2017-02-13 10:26:26,366] [3036   ] [15       ] [DEBUG] - WakeOnLanClient: No address stored for the server yet
    starting server :
    Code (Text):
    1. [2017-02-13 10:27:13,655] [50326  ] [32       ] [INFO ] - ServerConnectionManager: Connected to home server '87cd5afd-ee62-4ee8-9112-6029074996b3' at host 'tve-srv.home' (IP address: '192.168.1.9')
    2. [2017-02-13 10:27:13,707] [50378  ] [AMQ 'WakeOnLanPlugin'] [DEBUG] - WakeOnLanClient: Got server IP address '192.168.1.9' for 'tve-srv.home'
    3. [2017-02-13 10:27:13,739] [50410  ] [AMQ 'ConnectionMonitor'] [DEBUG] - ConnectionMonitor: Server connected, NetworkNeighborhoodResourceProviderSettings refreshed.
    4. [2017-02-13 10:27:13,755] [50426  ] [AMQ 'SettingsChangeWatcher`1'] [INFO ] - NetworkNeighborhoodResourceProvider: No credential registered for the root path; using Network Service account as fallback
    5. ..
    6. [2017-02-13 10:27:13,868] [50539  ] [AMQ 'WakeOnLanPlugin'] [INFO ] - WakeOnLanClient: Updating server hardware address for IP address '192.168.1.9'
    now the config file on client is registered :
    IP adress + hardware (base64)

    restart Client with Server in sleep mode ( the WOL work ) :
    i can see the magic packet on wireshark.
    Code (Text):
    1. [2017-02-13 10:36:09,914] [2502   ] [14       ] [INFO ] - WakeOnLanHelper: Waking server at 192.168.1.9 using port 1234
    2. ..
    3. [2017-02-13 10:36:18,984] [11571  ] [30       ] [DEBUG] - WakeOnLanHelper: Successfully woke server
    4. ..
    5. [2017-02-13 10:36:20,672] [13260  ] [AMQ 'WakeOnLanPlugin'] [DEBUG] - WakeOnLanClient: Got server IP address '192.168.1.9' for 'tve-srv.home'
    6. [2017-02-13 10:36:20,821] [13409  ] [Thread105] [INFO ] - ServerConnectionManager: Synchronizing shares with home server
    7. [2017-02-13 10:36:20,831] [13418  ] [AMQ 'WakeOnLanPlugin'] [INFO ] - WakeOnLanClient: Updating server hardware address for IP address '192.168.1.9'
    8.  
    So, for me the IPv4 seems working great, but the Ipv6 doesn't, it's maybe my hardware who don't work great for IPv6.

    edit : for information all virtual network card was disabled
     
    Last edited: February 13, 2017
    • Like Like x 1
  4. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,327 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Thanks, the ipv6 issue is, as you said, because of the extra network adapter index on the end of the server ipv6 address so the client doesn't think the addresses are equal. It's an easy fix, I just need to compare the address bytes instead...just haven't had time to make the change, I might get it done later today.
     
    • Like Like x 1
  5. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,523
    Likes Received:
    2,566
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,251 / 13
    Home Country:
    France France
    Show System Specs
    don't worry, it's an issue i wanted to do as an "team tester" since long time, but this one take me lot of time on job, using vpn.
    what i need to test is; if i enable all my virtual card, the ipv4 work or not !
    i think yes, but not sure. :whistle:
     
  6. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,327 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    New version added to first post which should fix IPv6 comparison.
     
    • Thank You! Thank You! x 1
  7. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,523
    Likes Received:
    2,566
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,251 / 13
    Home Country:
    France France
    Show System Specs
    updating setting when both machine are ON.
    Code (Text):
    1. [2017-02-13 14:22:01,527] [46623  ] [AMQ 'WakeOnLanPlugin'] [WARN ] - SystemName: Could not retrieve host alias/address list from DNS (hostName: fe80::983c:afa7:a34c:c3e4)
    2. [2017-02-13 14:22:01,529] [46625  ] [AMQ 'WakeOnLanPlugin'] [DEBUG] - WakeOnLanClient: Got server IP address 'fe80::983c:afa7:a34c:c3e4' for ''
    3. [2017-02-13 14:22:01,590] [46686  ] [AMQ 'WakeOnLanPlugin'] [INFO ] - WakeOnLanClient: Updating server hardware address for IP address 'fe80::983c:afa7:a34c:c3e4'
    4.  
    on client start when server is off :
    Code (Text):
    1.  
    2. [2017-02-13 14:28:27,861] [2283   ] [14       ] [INFO ] - WakeOnLanHelper: Waking server at fe80::983c:afa7:a34c:c3e4%2 using port 1234
    3. ...
    4. [2017-02-13 14:28:27,893] [2315   ] [14       ] [ERROR] - WakeOnLanClient: Error waking server
    5. System.Net.NetworkInformation.PingException: Une exception s'est produite lors d'une demande PING. ---> System.ComponentModel.Win32Exception: L’emplacement réseau ne peut pas être atteint. Pour obtenir des informations concernant la résolution des problèmes du réseau, consultez l’aide de Windows
    6.    à System.Net.NetworkInformation.Ping.InternalSend(IPAddress address, Byte[] buffer, Int32 timeout, PingOptions options, Boolean async)
    7.    à System.Net.NetworkInformation.Ping.SendAsync(IPAddress address, Int32 timeout, Byte[] buffer, PingOptions options, Object userToken)
    8.    --- Fin de la trace de la pile d'exception interne ---
    9.    à System.Net.NetworkInformation.Ping.SendAsync(IPAddress address, Int32 timeout, Byte[] buffer, PingOptions options, Object userToken)
    10.    à System.Net.NetworkInformation.Ping.SendAsync(String hostNameOrAddress, Int32 timeout, Byte[] buffer, PingOptions options, Object userToken)
    11.    à System.Net.NetworkInformation.Ping.SendAsync(String hostNameOrAddress, Int32 timeout, Object userToken)
    12.    à System.Net.NetworkInformation.Ping.<>c__DisplayClass58_0.<SendPingAsync>b__0(TaskCompletionSource`1 tcs)
    13.    à System.Net.NetworkInformation.Ping.SendPingAsyncCore(Action`1 sendAsync)
    14.    à System.Net.NetworkInformation.Ping.SendPingAsync(String hostNameOrAddress, Int32 timeout)
    15.    à WakeOnLan.Client.Helpers.WakeOnLanHelper.<PingAsync>d__2.MoveNext()
    16. --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    17.    à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    18.    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    19.    à WakeOnLan.Client.Helpers.WakeOnLanHelper.<WakeServer>d__1.MoveNext()
    20. --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
    21.    à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    22.    à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    23.    à WakeOnLan.Client.WakeOnLanPlugin.<WakeServerAsync>d__11.MoveNext()
    the IP stored is fe80::983c:afa7:a34c:c3e4%2, i think the %2 must not be stored, because it's related to server hardware.

    i tryed to remove manually the %2 by editing the wakeonlan config line, and after this change the server wokeup fine !
     
    • Like Like x 1
  8. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,327 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Good spot, I forgot it would ping with the server address. New version in first post which should only store 'clean' IP addresses.
     
    • Like Like x 2
  9. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,523
    Likes Received:
    2,566
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,251 / 13
    Home Country:
    France France
    Show System Specs
    it work now,
    tried 2 times before understand than the change come on server side and not on client. ( thanks github ) lol
     
    • Like Like x 1
  10. DomCash

    DomCash Portal Member

    Joined:
    January 10, 2010
    Messages:
    8
    Likes Received:
    3
    Ratings:
    +3 / 0
    Hey guys,

    installed v4 of the WoL Plugin on MePo 2.1 pre2 with Windows 10 server (server only installation) and two Windows 10 clients (client only installation).
    So far, working flawlessly as expected.

    This one fills a very important functionality gap. Thanks to the devs!

    Kind regards,
    DomCash
     
    • Like Like x 3
  11. sonnybonds

    sonnybonds Portal Pro

    Joined:
    December 3, 2008
    Messages:
    85
    Likes Received:
    3
    Ratings:
    +9 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Does this Plugin wake other PCs than the MP2-Server? In my environment the PC with the movies is not the PC with the MP2-Server running because I have to install the server on my client with the SAT-Card. In MP1 every time I wanted to watch a movie, the PC with the movies woke up by WOL. Is this the case now with this plugin or can the plugin be extended to get this functionality e.g. a configuration that some external media sources are started only when need as describes before?

    Greetings

    Sonny
     
Loading...

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

  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!