Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Numerous ATV DAAP ports to MacBook Pro

This is related to Apple TV3, sorry for the long intro.

My internet connectivity pretty much *****.

Speed Tests show I'm receiving 16M download as advertised.

When I try to connect to a web page, it often freezes and only partially downloads

Using "netstat" or "network utility" I often find a number of TCP connections in SYN_SENT state

And when I say "a number" as many as 111 connections with maybe 1/3 of them in SYN_SENT.


While this hardly seems like a lot, it leads me to question why so many, which in turn leads me to

find these connections between my MacBook Pro (Mavericks) and Apple TV 3. Why so many?


I do NOT have Home Sharing turned on for iTunes on my Laptop, yet it shows up as one of the

libraries available to the ATV3. And I can play the TV shows available on the laptop through

the ATV3. The ATV3 is connected via ethernet to an Airport Express.


(As an aside, the mini-mac (2009 model running Mavericks) which is the iTunes Library (12.1) i want to share

will often require me to reboot the ATV3 if it hasn't been accessed for more than 12 hours)


Although it should not matter, I wonder if the UBEE cable modem router (which is

providing DHCP) is seeing these connections and is hitting some limit on port forwarding

which is (part of) the cause of my lousy internet service.


Anyway, why so many ESTABLISHED connections

and why do only some of these listed connections include the system name

(they are all between the same ATV3 and MBP)


tcp4 0 0 192.168.0.8.daap 192.168.0.254.54603 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54596 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54595 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54594 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54593 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54592 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54548 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54544 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54523 ESTABLISHED

tcp4 0 0 192.168.0.8.daap 192.168.0.254.54517 ESTABLISHED

tcp6 0 0 johns-macbook-pr.daap great-room-apple.54507 ESTABLISHED

tcp6 0 0 johns-macbook-pr.daap great-room-apple.54504 ESTABLISHED

Apple TV, iOS 7.0.3

Posted on Feb 3, 2015 11:24 AM

Reply
6 replies

Feb 6, 2015 6:27 PM in response to John Zwiebel

While trying to install wireshark, and because my Ubee cable modem is pretty much useless. Some of the above information has changed.


FWIW: I was able to reconfigure the Ubee to "bridge mode" so that NAT/DHCP would be handled by the Airport Express.

While doing this I rebooted my laptop (something I've done before without affecting whether or not home sharing was available through the AppleTV)

Anyway, this time the AppleTV no longer shows my laptop as available through home sharing. (It should never have been)


Note that my laptop still shows open DAAP ports. What is "interesting" now is that 10.0.1.9 is -AN- address of the airport express


tcp4 0 0 10.0.1.4.daap 10.0.1.9.49266 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49265 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49264 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49258 ESTABLISHED


NOTE the HW address here is all the same. This is the MAC address of the Aiport Express on its e0 interface

NOTE 10.0.1.1 is the default route, why it is connected to the e0 interface (vs the wireless interface) is

kind of confusing)

apt-express e0 (10.0.1.1) at 90:72:40:0c:8c:9f on en1 ifscope [ethernet]

Apple e0 (10.0.1.9) 90:72:40:0c:8c:9f on en1 ifscope [ethernet]

Apple e0 (10.0.1.13) 90:72:40:0c:8c:9f on en1 ifscope [ethernet]



I guess the question is: "Why does an Airport Express give itself additional IP addresses on the wireless interface through DHCP?"

Is someone spying on me?

Feb 10, 2015 12:26 PM in response to John Zwiebel

I have confirmed...


DAAP sockets are opened in "Listen State" when iTunes is started.


If iTunes is not open there are no DAAP packets seen on the laptop (using TCPDUMP)


When iTunes is opened on the Laptop my Airport Extreme will send DAAP packets to my laptop.

This can take some time. Note there are both IPv6 and IPv4 packets sent, but no IPv6 sockets are opened.

These two packets are only representative of the packets received. There were 140 packets sent within 1 second.


10:02:17.021059 IP 10.0.1.23.53344 > 10.0.1.4.daap: Flags [S], seq 2688013582, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 1065574933 ecr 0,sackOK,eol], length 0

10:02:17.225405 IP6 great-room-apple-tv.local.53345 > johns-macbook-pro.local.daap: Flags [S], seq 2017228350, win 65535, options [mss 1440,nop,wscale 4,nop,nop,TS val 1065575136 ecr 0,sackOK,eol], length 0


This will open several DAAP sockets on the laptop.


tcp4 0 0 10.0.1.4.daap 10.0.1.23.53372 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.23.53371 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.23.53370 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.23.53369 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.23.53368 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.23.53358 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.23.53353 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49314 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49313 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49312 ESTABLISHED

tcp4 0 0 10.0.1.4.daap 10.0.1.9.49308 ESTABLISHED


10.0.1.4 Laptop

10.0.1.9 Airport Extreme

10.0.1.23 Airport Extreme


NOTE the hardware address. This is the MAC address of the AEX that is plugged into the cable modem.

10.0.1.1 is the default route to the Internet.


? (10.0.1.1) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]

? (10.0.1.9) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]

? (10.0.1.22) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]

? (10.0.1.23) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]

Feb 10, 2015 1:49 PM in response to John Zwiebel

NOTE: ipv6 sockets will also be open, but only 4 of them and these go only to the AppleTV.

The AppleTV does not show up in the ARP table


tcp6 0 0 johns-macbook-pr.daap great-room-apple.54393 ESTABLISHED

tcp6 0 0 johns-macbook-pr.daap great-room-apple.54392 ESTABLISHED

tcp6 0 0 johns-macbook-pr.daap great-room-apple.54391 ESTABLISHED

tcp6 0 0 johns-macbook-pr.daap great-room-apple.54390 ESTABLISHED


ndp -a

Neighbor Linklayer Address Netif Expire St Flgs Prbs

localhost (incomplete) lo0 permanent R

z-mini-2.local 0:26:b0:e9:c5:14 en1 16s R

great-room-apple-tv.local 68:d9:3c:7d:a2:3f en1 39s R <<<<<<<<<< This MAC address is not in the ARP table.

johns-macbook-pro.local 70:56:81:93:c7:c9 en1 permanent R

puu-base.local 90:72:40:c:8c:9f en1 23h20m46s S R

Feb 17, 2015 5:01 PM in response to John Zwiebel

To replicate the problem and provide some packet exchanges...


I have iTunes running on my laptop.

I wake up my ATV and navigate to the "computers" menu.

The ATV claims that there is no Homesharing turned on on any computers.

-- There is a minimac with iTunes running and HomeSharing on

-- My laptop has iTunes running with HomeSharing Off


The ATV is restarted, when I navigate the the "computers menu"

-- both the mini-mac and the laptop show as options on the ATV. (The laptop should not be there)

-- 3 DAAP sockets are opened on my laptop using IPv4


I ignore the ATV for about an hour waiting for it to go to sleep. (meaning there is no output to the TV HDMI)

-- DAAP sockets start getting open on my laptop and not closed

-- Both IPv6 and IPv4 sockets are being opened

-- There are "huge bursts" of DAAP packet exchanges (using tcpdump) between the laptop and the ATV. (over 200 packets per "burst")

-- Between 12:29 and 12:53 there were 12 Bursts capturing a total of 1175 DAAP packets

-- there are now 34 daap sockets open, they are both IPv4 and IPv6 sockets.

-- nap shows 17 IPv6 addresses associated with the MAC address of the ATV for example:

2605:e000:1103:8102:c15e:ece6:8835:4627 68:d9:3c:7d:a2:3f en1 23h51m56s S

2605:e000:1103:8102:cc7c:6364:4898:4a64 68:d9:3c:7d:a2:3f en1 23h35m13s S

-- arp -a shows the ATV address associated with the MAC address of the Apple Airport Extreme (tower)

? (10.0.1.21) at 90:72:40:c:8c:9f on en1 ifscope [ethernet]

-- tcpdump shows DAAP packets being exchanged to the MAC address of both the AEX and the ATV. (I only tracked DAAP packets)

-- Some bursts are initiated by the ATV

-- Some bursts are initiated by the laptop

--- bursts initiated by the laptop are sometimes sent to the ATV MAC address and sometimes to the AEC MAC

bursts that start out being sent to the AEC MAC will end transition to the ATV MAC


If someone wants to review the tcpdump of the packet bursts, I'll be happy to share the file via some other method than posting it here.


When I wake up the ATV, some DAAP sockets time out. Although it takes a while.

The Bursts of packets have stopped but there is still an exchange of packets.

These exchanges are both IPv6 and IPv4 and appear to be initiated by the laptop.

I'm guessing they are closing the sockets. However, many of the sockets remain open

or in CLOSE_WAIT state and there haven't been any packets exchanged for the last 30 minutes



14:25:36.648586 70:56:81:93:c7:c9 (oui Unknown) > 68:d9:3c:7d:a2:3f (oui Unknown), ethertype IPv6 (0x86dd), length 86: johns-macbook-pro.local.daap > great-room-apple-tv.local.49232: Flags [F.], seq 3866625054, ack 343499458, win 8192, options [nop,nop,TS val 478909895 ecr 156581444], length 0

0x0000: 600a 2225 0020 0640 fe80 0000 0000 0000 `."%...@........

0x0010: 7256 81ff fe93 c7c9 fe80 0000 0000 0000 rV..............

0x0020: 0877 0d72 a14b 4794 0e69 c050 e678 041e .w.r.KG..i.P.x..

0x0030: 1479 62c2 8011 2000 75c6 0000 0101 080a .yb.....u.......

0x0040: 1c8b 95c7 0955 3e44 .....U>D

14:25:36.651504 68:d9:3c:7d:a2:3f (oui Unknown) > 70:56:81:93:c7:c9 (oui Unknown), ethertype IPv6 (0x86dd), length 74: great-room-apple-tv.local.49232 > johns-macbook-pro.local.daap: Flags [R], seq 343499458, win 0, length 0

0x0000: 600a 2225 0014 0640 fe80 0000 0000 0000 `."%...@........

0x0010: 0877 0d72 a14b 4794 fe80 0000 0000 0000 .w.r.KG.........

0x0020: 7256 81ff fe93 c7c9 c050 0e69 1479 62c2 rV.......P.i.yb.

0x0030: 0000 0000 5004 0000 b36d 0000 ....P....m..



Kind of off-topic, and perhaps should be on a separate thread...


This show that two IP addresses have been assigned to the ATV. The first is the wireless (I assume) MAC on the ATV.

The second shows the ethernet interface on the ATV. The ATV is connected via ethernet. The ATV is connected via ethernet.

It knows about the wireless network, but I don't think it should be using it.


? (10.0.1.19) at 68:d9:3c:7d:a2:3e on en1 ifscope [ethernet]

? (10.0.1.21) at 68:d9:3c:7d:a2:3f on en1 ifscope [ethernet]

Feb 17, 2015 7:12 PM in response to John Zwiebel

When iTunes was shut down on the laptop, it tried to close the remaining open daap ports.

It was sending these messages to the MAC address of the Apple Airport Extreme, using the last IP address of the AppleTV.

Of course, the AEX did not respond to these packets.


Finally, all the daap ports (which had reached a high of 64) timed out and closed down.


17:06:52.780430 70:56:81:93:c7:c9 (oui Unknown) > 90:72:40:0c:8c:9f (oui Unknown), ethertype IPv4 (0x0800), length 289: 10.0.1.4.daap > 10.0.1.21.49260: Flags [FP.], seq 0:223, ack 1, win 8202, options [nop,nop,TS val 488358309 ecr 1021014170], length 223

0x0000: 4500 0113 1927 4000 0206 48a6 0a00 0104 E....'@...H.....

0x0010: 0a00 0115 0e69 c06c f58b 374a 77fc ef41 .....i.l..7Jw..A

0x0020: 8019 200a 9e2a 0000 0101 080a 1d1b c1a5 .....*..........

0x0030: 3cdb 709a 4854 5450 2f31 2e31 2032 3030 <.p.HTTP/1.1.200

0x0040: 204f 4b0d 0a44 6174 653a 2057 6564 2c20 .OK..Date:.Wed,.

0x0050: 3138 2046 6562 2032 3031 3520 3033 3a30 18.Feb.2015.03:0

0x0060: 363a 3034 2047 4d54 0d0a 4441 4150 2d53 6:04.GMT..DAAP-S

0x0070: 6572 7665 723a 2069 5475 6e65 732f 3132 erver:.iTunes/12

0x0080: 2e31 2e30 2e35 3020 284f 5320 5829 0d0a .1.0.50.(OS.X)..

0x0090: 436f 6e74 656e 742d 5479 7065 3a20 6170 Content-Type:.ap

0x00a0: 706c 6963 6174 696f 6e2f 782d 646d 6170 plication/x-dmap

0x00b0: 2d74 6167 6765 640d 0a43 6f6e 7465 6e74 -tagged..Content

0x00c0: 2d4c 656e 6774 683a 2034 340d 0a43 6f6e -Length:.44..Con

0x00d0: 7465 6e74 2d45 6e63 6f64 696e 673a 2067 tent-Encoding:.g

0x00e0: 7a69 700d 0a0d 0a1f 8b08 0000 0000 0000 zip.............

0x00f0: ffcb 2d2d 4861 6060 90c8 2d2e 2901 d22c ..--Ha``..-.)..,

0x0100: 407c 22b7 b4b8 08ca 6600 0058 633d c820 @|".....f..Xc=..

0x0110: 0000 00 ...

Numerous ATV DAAP ports to MacBook Pro

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.