How to detect an iPhone connecting a network?

Posted by JayCrossler on Server Fault See other posts from Server Fault or by JayCrossler
Published on 2009-12-05T18:05:22Z Indexed on 2010/03/19 22:11 UTC
Read the original article Hit count: 203

I've noticed through watching Wireshark that when an iPhone connects to a wifi network, it sends out a few IGMP/MDNS packets to 224.0.0.251 (LAN broadcast, I think). Is there any easy way to watch for these packets and then either run a script or send an event?

Or, is the best way to just run a packet sniffer? Any simple ones that can send events or execute curl commands when a filter is triggered?

When I run nc -u -l 5353 I get:

My-Name-iPhonelocal???
                            x???)??
                                  ??cc^C

Can I do something like: nc -u -l 5353 | grep iPhonelocal | execute command...

© Server Fault or respective owner

Related posts about iphone

Related posts about packet-analyzer