Router Charts

Router Charts

Router Ranker

Router Ranker

Router Chooser

Router Chooser

NAS Charts

NAS Charts

NAS Ranker

NAS Ranker

More Tools

More Tools

LAN & WAN How To

Step 6 - Configure port forwarding

Configuring port forwarding on your router is a required change; WOL won't work without it.

WOL uses UDP as its Layer 4 transport, but the port varies based on the utility. The mc-wol.exe utility uses UDP port 65535. AMD's Magic Packet Utility uses UDP port 2304. There is a Linux tool, aptly named wakeonlan, that uses UDP port 9.

An easy way to find the port is to use a packet sniffer utility to see which port is used. Ethereal (now Wireshark) is probably the best known, and a very powerful free download. If you're into networking, it is an invaluable troubleshooting tool. You may find this tool comes in handy if you're using a different WOL utility and need to find the port number.

Figure 6 below is the Wireshark capture of a WOL packet. The areas titled MAC ADDRESS and IP Address are blanked out in the example, because you'll see your own MAC and IP addresses when you run it. The key is the Dst Port (Destination Port). This is what you're looking for.

Wireshark's packet capture
Click to enlarge image

Figure 6: Wireshark's packet capture showing the destination port

Once you have the port number, you have what you need. You'll need to go into your router's port forwarding menu and set up a rule to forward UDP packets sent to the WOL port to the broadcast IP address of your LAN.

Some routers don't allow broadcast IPs to be used as a target IP. This is where having Static DHCP comes in handy. If you have configured Static DHCP, and your router has the MAC of your target PC, you can configure your router to forward the WOL packet directly to the IP address of the target PC.

Figure 7 below is a screen shot from a Linksys RV042 router. Port forwarding is configured in the Setup menu under the Forwarding tab.

Linksys port forwarding
Click to enlarge image

Figure 7: Setting up port forwarding on a Linksys RV042 router

Figure 8 below is a screen shot from a Zyxel P-334WT router with several port forwarding rules configured. Port forwarding is configured in the Network menu under the NAT-Port Forwarding tab.

Zyxel port forwarding
Click to enlarge image

Figure 8: Setting up port forwarding on a Zyxel P-334WT router

More LAN & WAN

Win This!

D-Link DIR-880L & DAP-1520

 

You could win a D-Link DIR-880L AC1900 router and DAP-1520 AC750 Wireless Extender

Learn How!

Top Performing Routers

AC3200
AC2350
AC1900
AC1750
AC1200

Top Performing NASes

NoRAID
RAID1
RAID5

Over In The Forums

Just updated AC68U from current ASUS firmware to Asuswrt-Merlin 378.51 and it cut my download speeds from 30 to 1mbps. Anyideas, Ive pretty much run...
Hmmm. http://www.smallnetbuilder.com/wire...0-netgear-suing-asus-for-wireless-hanky-panky NETGEAR Suing ASUS For Wireless Hanky Panky
I recently bought the RT-AC68U from an online UK retailer. I discovered that it is using the DE country code as shown by OS X. Is this normal? Sho...
I am trying to setup Wake on Lan (WOL) on one of my MacBook Pro (Yosemite 10.10.1 from the Internet (WAN) and LAN. Setup steps: 1). Enable port forwa...
hi all, Long time lurker here and many special thanks to RMerlin for the work he has done. In regards to my experience, I have an advanced knowledge ...

Don't Miss These

  • 1
  • 2
  • 3