Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Display iTunes songs being listened to by others' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display iTunes songs being listened to by others
Authored by: tuckerj on Feb 13, '04 02:00:49AM

Anyone know how to modify this script to show Username and/or IP address of the person accessing your library? That would be sweet, there must be some Unix command(s) that can do this.



[ Reply to This | # ]
Display iTunes songs being listened to by others
Authored by: Kaedwen on Mar 24, '04 01:57:49PM
Since itunes evidently uses port 3689, you should be able to do something like:

netstat -n | grep `ifconfig en0 | grep netmask | awk '{print $2}'`.3689 | awk '{print $5}' | cut -f1-4 -d"."
en0 is the default ethernet port, if you're using an airport card, you'd want to use en1 (or whatever is appropriate for your box). If the ip address appears once, they either are or were looking over your library. If there are 2 connections, they're listening to something.

You can simplify it if you want more info:


netstat -n | grep .3689
This'll show your connections to other shares also.

[ Reply to This | # ]