Detect if Wake on LAN host is available












1















Is there a possibility to detect, if a Wake on LAN target is available and listening on the network?





I have several Windows 10 machines with Intel I211 Ethernet Adapter running. For all, Wake on LAN is enabled and working well most of the times.



But sometimes it does not (e.g. Windows Update disables WoL, someone cut the main power, etc.).



Currently, I send a WoL magic package and start to ping the machine until it succeeds. But I don't know, if the machine is booting, which may take a while, or if the machine didn't wake up at all. Therefore, it would be great to have a direct indication in my controller application, if the machine available and is listening for magic packages.



My first idea was that the Intel adapter could be able to respond to pings, but this doesn't seem to be possible.










share|improve this question



























    1















    Is there a possibility to detect, if a Wake on LAN target is available and listening on the network?





    I have several Windows 10 machines with Intel I211 Ethernet Adapter running. For all, Wake on LAN is enabled and working well most of the times.



    But sometimes it does not (e.g. Windows Update disables WoL, someone cut the main power, etc.).



    Currently, I send a WoL magic package and start to ping the machine until it succeeds. But I don't know, if the machine is booting, which may take a while, or if the machine didn't wake up at all. Therefore, it would be great to have a direct indication in my controller application, if the machine available and is listening for magic packages.



    My first idea was that the Intel adapter could be able to respond to pings, but this doesn't seem to be possible.










    share|improve this question

























      1












      1








      1








      Is there a possibility to detect, if a Wake on LAN target is available and listening on the network?





      I have several Windows 10 machines with Intel I211 Ethernet Adapter running. For all, Wake on LAN is enabled and working well most of the times.



      But sometimes it does not (e.g. Windows Update disables WoL, someone cut the main power, etc.).



      Currently, I send a WoL magic package and start to ping the machine until it succeeds. But I don't know, if the machine is booting, which may take a while, or if the machine didn't wake up at all. Therefore, it would be great to have a direct indication in my controller application, if the machine available and is listening for magic packages.



      My first idea was that the Intel adapter could be able to respond to pings, but this doesn't seem to be possible.










      share|improve this question














      Is there a possibility to detect, if a Wake on LAN target is available and listening on the network?





      I have several Windows 10 machines with Intel I211 Ethernet Adapter running. For all, Wake on LAN is enabled and working well most of the times.



      But sometimes it does not (e.g. Windows Update disables WoL, someone cut the main power, etc.).



      Currently, I send a WoL magic package and start to ping the machine until it succeeds. But I don't know, if the machine is booting, which may take a while, or if the machine didn't wake up at all. Therefore, it would be great to have a direct indication in my controller application, if the machine available and is listening for magic packages.



      My first idea was that the Intel adapter could be able to respond to pings, but this doesn't seem to be possible.







      windows networking wake-on-lan






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 31 at 9:28









      Stanley F.Stanley F.

      1114




      1114






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Since the Wake-on-LANmagic packet is broadcast via UDP (a connectionles protocol) there is AFAIK no way until the pc is up and the network stack fully working to answer to a (IP based) ping.



          Remember the WOL sends the MAC-address not an IP and the time until the pc is up (if at all) depends on the power state (s0..s5).






          share|improve this answer
























          • My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

            – Stanley F.
            Feb 4 at 8:51











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400458%2fdetect-if-wake-on-lan-host-is-available%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Since the Wake-on-LANmagic packet is broadcast via UDP (a connectionles protocol) there is AFAIK no way until the pc is up and the network stack fully working to answer to a (IP based) ping.



          Remember the WOL sends the MAC-address not an IP and the time until the pc is up (if at all) depends on the power state (s0..s5).






          share|improve this answer
























          • My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

            – Stanley F.
            Feb 4 at 8:51
















          0














          Since the Wake-on-LANmagic packet is broadcast via UDP (a connectionles protocol) there is AFAIK no way until the pc is up and the network stack fully working to answer to a (IP based) ping.



          Remember the WOL sends the MAC-address not an IP and the time until the pc is up (if at all) depends on the power state (s0..s5).






          share|improve this answer
























          • My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

            – Stanley F.
            Feb 4 at 8:51














          0












          0








          0







          Since the Wake-on-LANmagic packet is broadcast via UDP (a connectionles protocol) there is AFAIK no way until the pc is up and the network stack fully working to answer to a (IP based) ping.



          Remember the WOL sends the MAC-address not an IP and the time until the pc is up (if at all) depends on the power state (s0..s5).






          share|improve this answer













          Since the Wake-on-LANmagic packet is broadcast via UDP (a connectionles protocol) there is AFAIK no way until the pc is up and the network stack fully working to answer to a (IP based) ping.



          Remember the WOL sends the MAC-address not an IP and the time until the pc is up (if at all) depends on the power state (s0..s5).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 31 at 11:11









          LotPingsLotPings

          4,9961822




          4,9961822













          • My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

            – Stanley F.
            Feb 4 at 8:51



















          • My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

            – Stanley F.
            Feb 4 at 8:51

















          My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

          – Stanley F.
          Feb 4 at 8:51





          My hope was that it may be possible to configure the ethernet adapter to answer a ping or some other request, even though the main OS is shut off.

          – Stanley F.
          Feb 4 at 8:51


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400458%2fdetect-if-wake-on-lan-host-is-available%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido