Enabling AirPlay on a DLINK DIR-655 router
I finally figured out how to enable AirPlay with a DLink Dir-655 router.
The Apple TV when it is not allowing AirPlay ony uses IP/UDP ports 3689 and 62078, but when Airplay is enabled it provides services on IP / UDP ports 7000 and 7100. 7000 is listed as a AFS3-fileserver, and 7100 is listed as an X Font Services. (3689 is for Rendezvous Zeroconfig, and 62078 is for apparently used for iphone-syncing). For some reason ports 7000 and 7100 are not listed by Apple in their well known port list article http://support.apple.com/kb/TS1629 so it really needs to be updated. I found out that those were the ports that were being used by using the Fing application (available for free on the iphone and ipad, and if you need to use it, it is a really, really good app BTW). The other thing that I did on the DLINK Dir-655 was to enable the opening of those ports on IP and UDP. I don't know if it just needs to be open for IP, but perhaps the good people at Apple can tell us...
Now for the DLink router here are the things that I enabled (note not all of these may be necessary but it works for me now so I'm not changing this now) If you go to slow in entering in the data the Dlink may log you out, so you might want to save your changes between steps.
1)Advanced >> Firewall settings FILTERING
a) Endpoint Independent should be checked for both UDP Endpoint Filtering and TCP Endpoint Filtering
b) Check the Enable SPI box
c) Click the Save Setting button towards the top of the screen
2) Advanced >> Application Rules
Make sure that you check the enablement box on the far left to ensure that the the port will be opened when you save the changes.
Going from Left to right
a) Check the box at the far left. This enables the ports that you are opening. If left unchecked nothing will be opened when you save the changes.
b) Type in any name that you want in the Name box. I used AppleTV 3689 so that I would later know why that port was opened. So just put the number of the port you are opening after the AppleTV text if you find this system helpful.
c) The Port column has two items one is Trigger and the other is Firewall set them both to the number of the port you want to open. 3689 is the value you should use here.
d) The Traffic Type column has one value for the Trigger port and another for the Firewall port. Set them both to Any. (Note it might work to just open TCP per my opening paragraph.
e) Under Schedule at the far right set it to Always.
3) Repeat section 3 times. The first time change 3689 to 7000. The second time change it to 7100, and the third time change it to 62078.
4) Click the Save Settings button towards the top of the screen
5) Advanced >> Advanced Wireless
a) Make sure that Transmit Power is set to High
b) Check the box next to WMM Enable (This is good for when you stream data over your local network to reduce jitter)
6) Advanced >> Advanced Network
a) At the bottom where it says Multicast Streams check the box where it says Enable Multicast Streams. (You need this to stream music or video etc from your iPad 2, iPad 3, or iPhone 4S )
b) Click the Save Settings button towards the top of the screen
7) I rebooted my DLink router at this point by pulling out the plug. This might be optional, but sometimes the devices need to have this done in order to be seen.
8) Make sure that your AppleTV2 or AppleTV3 is on and that you have enabled AirPLay on them. If they are not on, they don't appear as an option for me when try to use AirPlay
9) AirPlay dosen't show up as a little app button. Instead you have to hunt for it. You do this on your iPad 2, iPad 3, or iPhone 4S by hitting the home button twice quickly. What comes up is your most recently used apps. If you swipe with your finger to the right you can scroll through all of you most recently used apps, but if you scroll to the right, just after you pushed the home button twice quickly, up will come a little bar for playing video/music etc. Off to the right a bit you will finally see the AirPlay logo that looks a bit like an evelope. Push it and up should list an option to display stuff on your iPad or on your AppleTV2 or AppleTV3. You will see multiple AppleTV's listed if you have them. if you do, I recommend that you give them different names under the settings for the AppleTV. You will also see the switch for mirroring. If you click that everything that you do on your iPhone/Pad will show up on the TV.
Enjoy!
iPad 2, iOS 5.1, iPad 3, AppleTV2