Does it matter what UDP port a WOL signal is sent to?












16















i have seen many WOL instances use port 7 and many use port 9, does it matter?
Isn't it just looking for a WOL packet at layer 2 or ethernet?










share|improve this question



























    16















    i have seen many WOL instances use port 7 and many use port 9, does it matter?
    Isn't it just looking for a WOL packet at layer 2 or ethernet?










    share|improve this question

























      16












      16








      16


      7






      i have seen many WOL instances use port 7 and many use port 9, does it matter?
      Isn't it just looking for a WOL packet at layer 2 or ethernet?










      share|improve this question














      i have seen many WOL instances use port 7 and many use port 9, does it matter?
      Isn't it just looking for a WOL packet at layer 2 or ethernet?







      ethernet port wake-on-lan udp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 10 '11 at 5:52









      rjtrjt

      64921016




      64921016






















          3 Answers
          3






          active

          oldest

          votes


















          16














          @Spiff is correct that it doesn't matter as far as the Wake-on-LAN functionality of the intended recipient goes. However, UDP is recommended because it can be generated without raw sockets which come with security restrictions, and port 9 is recommended because it maps to the old well-known discard protocol whereas port 7 maps to the echo protocol.



          This means that if there are hosts on your network that support these old simple standard services you will get unnecessary backscatter traffic when using port 7 but none when using port 9. And since Wake-on-LAN is normally broadcasted, you could get backscatter from many hosts.



          Further, if you are troubleshooting WoL with a network sniffer such as Wireshark, it will decode WoL packets properly only if they are UDP packets on port 9.






          share|improve this answer





















          • 2





            Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

            – rjt
            Jan 23 '16 at 1:14



















          9














          Nope, it doesn't matter. It doesn't even have to be a UDP or an IP packet at all. The NIC is just looking for the magic pattern (six bytes of 0xff, then its own MAC address 16 times) in all the frames it sees.






          share|improve this answer
























          • "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

            – rjt
            Jun 13 '11 at 22:42











          • @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

            – Spiff
            Jun 13 '11 at 22:52






          • 1





            So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

            – Marki
            Mar 10 '17 at 9:24



















          6














          When I woke my computer using port 9 it would restart instead of coming out of sleep. For the life of me I couldn't figure out what I did wrong. I tried using port 7 and instead of restarting it woke up normally. It doesn't seem to matter most of the time which you use, but for my hardware I need to use port 7.






          share|improve this answer





















          • 3





            for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

            – Shaun Wilson
            Dec 3 '16 at 20:28











          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%2f295325%2fdoes-it-matter-what-udp-port-a-wol-signal-is-sent-to%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          16














          @Spiff is correct that it doesn't matter as far as the Wake-on-LAN functionality of the intended recipient goes. However, UDP is recommended because it can be generated without raw sockets which come with security restrictions, and port 9 is recommended because it maps to the old well-known discard protocol whereas port 7 maps to the echo protocol.



          This means that if there are hosts on your network that support these old simple standard services you will get unnecessary backscatter traffic when using port 7 but none when using port 9. And since Wake-on-LAN is normally broadcasted, you could get backscatter from many hosts.



          Further, if you are troubleshooting WoL with a network sniffer such as Wireshark, it will decode WoL packets properly only if they are UDP packets on port 9.






          share|improve this answer





















          • 2





            Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

            – rjt
            Jan 23 '16 at 1:14
















          16














          @Spiff is correct that it doesn't matter as far as the Wake-on-LAN functionality of the intended recipient goes. However, UDP is recommended because it can be generated without raw sockets which come with security restrictions, and port 9 is recommended because it maps to the old well-known discard protocol whereas port 7 maps to the echo protocol.



          This means that if there are hosts on your network that support these old simple standard services you will get unnecessary backscatter traffic when using port 7 but none when using port 9. And since Wake-on-LAN is normally broadcasted, you could get backscatter from many hosts.



          Further, if you are troubleshooting WoL with a network sniffer such as Wireshark, it will decode WoL packets properly only if they are UDP packets on port 9.






          share|improve this answer





















          • 2





            Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

            – rjt
            Jan 23 '16 at 1:14














          16












          16








          16







          @Spiff is correct that it doesn't matter as far as the Wake-on-LAN functionality of the intended recipient goes. However, UDP is recommended because it can be generated without raw sockets which come with security restrictions, and port 9 is recommended because it maps to the old well-known discard protocol whereas port 7 maps to the echo protocol.



          This means that if there are hosts on your network that support these old simple standard services you will get unnecessary backscatter traffic when using port 7 but none when using port 9. And since Wake-on-LAN is normally broadcasted, you could get backscatter from many hosts.



          Further, if you are troubleshooting WoL with a network sniffer such as Wireshark, it will decode WoL packets properly only if they are UDP packets on port 9.






          share|improve this answer















          @Spiff is correct that it doesn't matter as far as the Wake-on-LAN functionality of the intended recipient goes. However, UDP is recommended because it can be generated without raw sockets which come with security restrictions, and port 9 is recommended because it maps to the old well-known discard protocol whereas port 7 maps to the echo protocol.



          This means that if there are hosts on your network that support these old simple standard services you will get unnecessary backscatter traffic when using port 7 but none when using port 9. And since Wake-on-LAN is normally broadcasted, you could get backscatter from many hosts.



          Further, if you are troubleshooting WoL with a network sniffer such as Wireshark, it will decode WoL packets properly only if they are UDP packets on port 9.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 17 '16 at 10:21

























          answered Jan 22 '16 at 15:06









          WinTakeAllWinTakeAll

          361310




          361310








          • 2





            Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

            – rjt
            Jan 23 '16 at 1:14














          • 2





            Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

            – rjt
            Jan 23 '16 at 1:14








          2




          2





          Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

          – rjt
          Jan 23 '16 at 1:14





          Thanks, that was informative! Turned out Intel vPro nics discard and ignore WOL packets completely and of course turns out these were vPro machines I was trying to wake.

          – rjt
          Jan 23 '16 at 1:14













          9














          Nope, it doesn't matter. It doesn't even have to be a UDP or an IP packet at all. The NIC is just looking for the magic pattern (six bytes of 0xff, then its own MAC address 16 times) in all the frames it sees.






          share|improve this answer
























          • "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

            – rjt
            Jun 13 '11 at 22:42











          • @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

            – Spiff
            Jun 13 '11 at 22:52






          • 1





            So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

            – Marki
            Mar 10 '17 at 9:24
















          9














          Nope, it doesn't matter. It doesn't even have to be a UDP or an IP packet at all. The NIC is just looking for the magic pattern (six bytes of 0xff, then its own MAC address 16 times) in all the frames it sees.






          share|improve this answer
























          • "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

            – rjt
            Jun 13 '11 at 22:42











          • @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

            – Spiff
            Jun 13 '11 at 22:52






          • 1





            So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

            – Marki
            Mar 10 '17 at 9:24














          9












          9








          9







          Nope, it doesn't matter. It doesn't even have to be a UDP or an IP packet at all. The NIC is just looking for the magic pattern (six bytes of 0xff, then its own MAC address 16 times) in all the frames it sees.






          share|improve this answer













          Nope, it doesn't matter. It doesn't even have to be a UDP or an IP packet at all. The NIC is just looking for the magic pattern (six bytes of 0xff, then its own MAC address 16 times) in all the frames it sees.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 10 '11 at 7:18









          SpiffSpiff

          77k10117163




          77k10117163













          • "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

            – rjt
            Jun 13 '11 at 22:42











          • @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

            – Spiff
            Jun 13 '11 at 22:52






          • 1





            So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

            – Marki
            Mar 10 '17 at 9:24



















          • "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

            – rjt
            Jun 13 '11 at 22:42











          • @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

            – Spiff
            Jun 13 '11 at 22:52






          • 1





            So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

            – Marki
            Mar 10 '17 at 9:24

















          "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

          – rjt
          Jun 13 '11 at 22:42





          "in all the frames it sees" --- so the 6x0xff + 16xMAC can be in a single frame?

          – rjt
          Jun 13 '11 at 22:42













          @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

          – Spiff
          Jun 13 '11 at 22:52





          @rjt Yes, the magic pattern can be in a single frame. In fact, it probably has to be. I doubt it would work if it was split between frames.

          – Spiff
          Jun 13 '11 at 22:52




          1




          1





          So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

          – Marki
          Mar 10 '17 at 9:24





          So this will even work if you egress the WoL-VLAN tagged toward the end user (if not otherwise possible)?

          – Marki
          Mar 10 '17 at 9:24











          6














          When I woke my computer using port 9 it would restart instead of coming out of sleep. For the life of me I couldn't figure out what I did wrong. I tried using port 7 and instead of restarting it woke up normally. It doesn't seem to matter most of the time which you use, but for my hardware I need to use port 7.






          share|improve this answer





















          • 3





            for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

            – Shaun Wilson
            Dec 3 '16 at 20:28
















          6














          When I woke my computer using port 9 it would restart instead of coming out of sleep. For the life of me I couldn't figure out what I did wrong. I tried using port 7 and instead of restarting it woke up normally. It doesn't seem to matter most of the time which you use, but for my hardware I need to use port 7.






          share|improve this answer





















          • 3





            for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

            – Shaun Wilson
            Dec 3 '16 at 20:28














          6












          6








          6







          When I woke my computer using port 9 it would restart instead of coming out of sleep. For the life of me I couldn't figure out what I did wrong. I tried using port 7 and instead of restarting it woke up normally. It doesn't seem to matter most of the time which you use, but for my hardware I need to use port 7.






          share|improve this answer















          When I woke my computer using port 9 it would restart instead of coming out of sleep. For the life of me I couldn't figure out what I did wrong. I tried using port 7 and instead of restarting it woke up normally. It doesn't seem to matter most of the time which you use, but for my hardware I need to use port 7.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 14 '14 at 13:31









          gronostaj

          28.2k1369107




          28.2k1369107










          answered Aug 14 '14 at 13:27









          BrandonBrandon

          6111




          6111








          • 3





            for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

            – Shaun Wilson
            Dec 3 '16 at 20:28














          • 3





            for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

            – Shaun Wilson
            Dec 3 '16 at 20:28








          3




          3





          for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

          – Shaun Wilson
          Dec 3 '16 at 20:28





          for the sake of knowing, what hardware was it that behaved this way? sounds like port 9 was being used as a sort of ILO instead of WOL.

          – Shaun Wilson
          Dec 3 '16 at 20:28


















          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%2f295325%2fdoes-it-matter-what-udp-port-a-wol-signal-is-sent-to%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

          Paul Cézanne

          UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

          Angular material date-picker (MatDatepicker) auto completes the date on focus out