mikebrady / shairport-sync-metadata-reader

Sample Shairport Sync Metadata Player
MIT License
126 stars 33 forks source link

User's IP Address #9

Closed alex-osman closed 7 years ago

alex-osman commented 8 years ago

I was wondering if there is a way to find the IP address of the user who is streaming the music at the given time.

mikebrady commented 8 years ago

Hi there, and thanks for the post. The IP number is known to Shairport Sync when streaming is occurring, so it would be possible to send it as a metadata item. I'll put it on the list of things to do. BTW, it could be IPv4 or IPv6.

alex-osman commented 8 years ago

Yes, I've seen it on the verbose output of Shairport Sync, was wondering if it was something it already logged to metadata or not. But thanks!

roblan commented 8 years ago

You can find it using mDNS while searching for dacp tcp named iTunesCtrl(DACP_ID) (which is already in the metadata). It's a little complicated but doable :)

There is a little about it here https://www.sugrsugr.com/index.php/airplay-prev-next/

mikebrady commented 8 years ago

Thanks for the suggestion. I've added a metadata item clip to the latest development version. I'd be obliged if you tried it out.

mikebrady commented 7 years ago

There's been a further update to this in the latest versions of Shairport Sync.