Apple TV (2nd generation)
Connect iPhone, iPad or iPod touch to a Wi-Fi network that is connected to the local network that your Apple TV is also connected to.
On Apple TV, select Settings from the main menu, then select General > Remotes > Remote App.
If your Home Sharing account is not set up on your Apple TV, you will be prompted to enable Home Sharing first. (For more information about setting up Home sharing on your Apple TV, read
this article.)
Open the Remote app on your mobile device.
Select your Apple TV from the Remote app settings screen.
Remote app will be paired with Apple TV and you can begin browsing Apple TV using Remote app. You can also browse and play from all iTunes libraries that are listed in the Computers section of your Apple TV from within the Remote app.