Re: Monitor Magic packet(wake on lan packet )
Re: Monitor Magic packet(wake on lan packet )
- Subject: Re: Monitor Magic packet(wake on lan packet )
- From: Jason Stephenson <email@hidden>
- Date: Mon, 08 Dec 2008 09:02:15 -0500
sheen mac wrote:
In my app,I want to monitor the magic packet .
Where I will get more info about this. Could
give some link for this?.I found a command tcpdump,
Could I use this for wol packet monitoring?.
As Andrew Farmer pointed out, you don't typically monitor for the magic
packet, since it is used to wake your computer from sleep or to turn it
on remotely.
The packet is sent as an UDP broadcast on the LAN and can be sent to any
port, though port 9 seems to be commonly used among the sample WOL
broadcaster apps available on the 'Net.
If you wanted to monitor for WOL broadcasts on your LAN, then you might
want to monitor port 9 for incoming UDP connections and log anything
that arrives. I'm pretty sure that tcpdump can do that, though I've
never used it. If you're trying to debug an existing WOL application,
then you'll want to listen on whatever port it sends to.
A WOL monitor would make for a decent first server exercise for a class
in network programming. Bonus points to the student who can explain why
WOL won't work over IPv6.
Cheers,
Jason
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden