Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Configuring port mapping for wake-on-LAN

I had this working once upon a time, several OS's ago and with Airport Extreme base station. Now I have a Time Capsule and 10.5.4.

My Wake On LAN script (which is being run at a remote site) sends a magic packet to UDP port 9 of my public IP address. My LAN uses addresses from the 192.168.1.* range. I added a port-mapping entry to Time Capsule as follows:

Public UDP port: 9
Private IP address: 192.168.1.255 (i.e. the broadcast address)
Private UDP port: 9

(The targeted machine is attached to Time Capsule via ethernet.)

The packet never seems to get onto the LAN. I've confirmed this by running tcpdump on the LAN: I do not see any packets from the remote IP address.

Of course, I don't know for a fact that the packet is successfully arriving at my cable modem. That will be harder to verify, but I wondered if anyone knew of something obvious I'm doing wrong at my end. Do UDP port 9 ("discard") packets maybe get discarded somewhere along the way?

Thanks,
Chap

2.4GHz MacBook Pro, Mac OS X (10.5), Time Capsule 500GB

Posted on Aug 25, 2008 1:53 PM

Reply
15 replies

Sep 23, 2008 9:14 AM in response to Chap Harrison

Ever get an answer to this? I don't yet have an Airport Extreme or Timecapsule (am thinking of getting one of the two) but I have tried for hours and hours to get this working with other routers and came to agree with the posts I read that say most home-use routers will not let you forward to the broadcast IP address. I know there are a few routers (Ex. Linksys WRT54G - don't have it but read this) can do this, and, even though the Javascript in the web interface was trying not to let me, I was able to get this working on my Linksys BEFSR41 using a little hack to bypass the Javascript message. But anyway I've only found information that says that the Airport Extreme is one of the routers that can not do this, so if you can get it working I am interested to know. (I thought the Time Capsule was basically an Airport Extreme with an internal hard drive, but maybe not?)

Oct 22, 2008 7:33 PM in response to Chap Harrison

I tried mapping the port to the address of my ethernet adapter:

Public UDP port: 9
Private IP address: 192.168.1.2
Private UDP port: 9

That didn't work either. Is there any way to wake a Mac remotely through Time Capsule? I've searched extensively and found nothing. Really disappointing since two out of three things I've wanted to do remotely through the Time Capsule haven't worked (Wake on lan, sharing of disk with remote Windows machines, and VNC access; only VNC seems to work). Thanks in advance for any assistance!

Nov 25, 2008 8:07 PM in response to everkleer

Sorry for late reply -- apparently the discussion board is not emailing me when replies are posted, despite my settings.

Short answer: no progress.

I was able to accomplish this with Airport Extreme, although they didn't want it to be easy: the GUI specifically disallowed typing '255' as the fourth octet of the private IP address. However, by Exporting to a text file, manually editing it, and re-Importing it, I could get AE to forward to the broadcast address.

TC allows you to enter 255 in the GUI, but apparently ignores it!

Rot.

Dec 13, 2008 10:09 AM in response to Chap Harrison

Apple's base stations and time capsules are great routers but lack features that other routers boast. They do however make fantastic access points and are easy to setup.

You could get a router such as a linksys wrt54g and install openwrt or dd-wrt firmware on it. This firmware allows you to install a wake on lan client inside the router. You could then ssh into the router from anywhere and send the magic packet from the router to the MAC address of any computer on that LAN.

Dec 22, 2008 9:43 PM in response to tompijls

Tom,
My Time Capsule firmware is at 7.3.2, and I'm using Airport Utility 5.3.2. Like you, I can add 255 as the final octet in Port Mapping, but it has no effect: using tcpdump, I don't see anything appear on the local area network when I send the appropriate packet from an external host to my public IP address.

I don't know the firmware level, or the Airport Utility version, when I had the Airport Extreme.

Chap

Dec 23, 2008 11:00 AM in response to googleplex3000

This does actually work for me.

First i made sure that all NAT port mappings and DHCP reservations were below x.x.x.127

Then i saved from airport utility the configuration to a file.

With a text editor , I replaced all occurrences of 255.255.255.0 in this file to 255.255.255.128.

Load the configuration file back in the airport utility and update the airport extreme.

Create a Nat port mapping to port 9 on the pc to wake up

Now send the magic packet to the external ip/port boots the pc

not sure if this is a supported way of working so do it at your own risk

Dec 23, 2008 6:30 PM in response to tompijls

In your procedure you said:

tompijls wrote:

Create a Nat port mapping to port 9 on the pc to wake up


Is that what you did, or did you create a NAT port mapping to port 9 +of the local broadcast IP address?+

I would have thought that you would map your WAN IP address + port 9 to your LAN broadcast IP address + port 9 (e.g. 192.168.1.127).

Configuring port mapping for wake-on-LAN

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.