If you are curious, you can tell who’s connected to your computer and find out their IP Address, but that’s all you can find.
Open Terminal (/Applications/Utilities/Terminal.app)
And type:
netstat | grep daap
The output will look like this (albeit with other IP addresses):
tcp4 0 0 your.ip.address.daap x.y.z.w.49195 ESTABLISHED
Being x.y.z.w the ip addresses of those who are connected to your library. That user above is not listening to anything (but it’s connected to your library).
You might see duplicated entires for the same IP, for example:
tcp4 0 131768 your.ip.address.daap x.y.z.w.49198 ESTABLISHED
tcp4 0 0 your.ip.address.daap x.y.z.w.49195 ESTABLISHED
That means that computer from ip x.y.z.w is listening to something. I believe the ports (49195 and 49198) are not static and might change, but I really don’t remember now. The important part is the daap which stands for Direct Audio Access Protocol.
Essentially your asking nestat to list all your connections to/from your computer and filtering the (rather large) output to those lines which contain ‘daap’ in them.
If you get no output or it seems to be “hung”, try using ’netstat’ alone and then scroll up to manually find them. Please note that the command may take a few (sometimes more than 20-30 secs) to produce output, depending upon your network.
The ESTABLISHED part means the connection is still alive.
For more information about netstat, don’t hesitate typing:
man netstat
in the Terminal.
You might also see your own computer “listening” (iTunes Sharing enabled), it should look like this:
tcp6 0 0 *.daap *.* LISTEN
tcp4 0 0 *.daap *.* LISTEN
Notice that is one for ipv4 and one for ipv6 and the LISTEN part. :)
An alternative that I am not sure if it’s still working, is Doug’s Applescripts for iTunes: What Are People Listening 2, which will theoretically find out who/what are they listening. I haven’t tried that one and it seems to be from 2004, however it may still work and you might want to check that out.
Applet displays the name and artist of shared songs being listened to by others on the local network.