hark, who accesses my shared iTunes or iPhoto libraries?

Earlier today I tried to quit iPhoto, only to have it inform me that there was a user browsing my shared photos and would I really want to cut off their access by quitting. I was intrigued, as I had no idea that anyone would bother accessing my shared photos (excellent as they are).

The best way to deal with a voyeur is to voyeur back, so I decided to try and figure out who was looking at my share.

Benjamin Han, at his Unix Tips for Mac OS X page, kindly points out a way to see who is listening to one’s iTunes share:

lsof -r 2 -n -P -F n -c iTunes -a -i TCP@`hostname`:3689

So I modified that line to instead check for iPhoto (8770 is the port iPhoto uses for sharing):

lsof -r 2 -n -P -F n -c iPhoto -a -i TCP@`hostname`:8770

And that gave me the IP address of the person browsing my photos. Once I had this IP address, I did not seek out the user behind the address, but instead promptly lost enthusiasm for the whole enterprise. Ah well, I hope they enjoyed the photos.

Leave a Reply