Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Wake on Lan default port

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 3.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GennP
      last edited by

      Why WoL port from pfSense is the default 40000 and not 9?

      22:07:51.031871 IP (tos 0x0, ttl 64, id 7979, offset 0, flags [none], proto UDP (17), length 130)
          pfSense.home.arpa.1452 > 192.168.1.255.40000: [udp sum ok] UDP, length 102
      	0x0000:  4500 0082 1f2b 0000 4011 d6ef c0a8 0101  E....+..@.......
      	0x0010:  c0a8 01ff 05ac 9c40 006e 6f3e ffff ffff  .......@.no>....
      	0x0020:  ffff 0011 2233 4455 0011 2233 4455 0011  ...."3DU.."3DU..
      	0x0030:  2233 4455 0011 2233 4455 0011 2233 4455  "3DU.."3DU.."3DU
      	0x0040:  0011 2233 4455 0011 2233 4455 0011 2233  .."3DU.."3DU.."3
      	0x0050:  4455 0011 2233 4455 0011 2233 4455 0011  DU.."3DU.."3DU..
      	0x0060:  2233 4455 0011 2233 4455 0011 2233 4455  "3DU.."3DU.."3DU
      	0x0070:  0011 2233 4455 0011 2233 4455 0011 2233  .."3DU.."3DU.."3
      	0x0080:  4455                                     DU
      
      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @GennP
        last edited by

        @GennP WOL has no defined "port".. Port doesn't matter, its a frame sent to the mac of the device you want to "wake up".. Ports 7 and 9 are used quite often because they are old protocol ports that are not normally used any more.

        While you might want to use a port to send traffic through a router.. But what port you use is really meaningless when sent on the same network..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        G 1 Reply Last reply Reply Quote 1
        • G
          GennP @johnpoz
          last edited by

          @johnpoz said in Wake on Lan default port:

          Ports 7 and 9 are used quite often because they are old protocol ports that are not normally used any more.

          But all applications I have seen use port 9, except pfSense which uses 40000.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @GennP
            last edited by johnpoz

            @GennP said in Wake on Lan default port:

            But all applications I have seen use port 9

            So? Again doesn't matter.. Like I said 7 and 9 have become common use for such applications. Has zero to do with wol working or not. 9 is the old discard protocol.

            Not like the nic for the wol is waiting to see traffic on a specific port.. Its waiting to see its mac in a frame.. What port used by some application as it puts it on the wire is meaningless.. Unless you were looking to forward that through router maybe when above layer 2..

            As to why they landed on 40000 vs say 9, have no idea really - but doesn't matter at all.. They could of used 42666 or 9999, it makes no difference.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.