Peer-to-peer AirPlay connects your iPhone or iPad to your Apple TV, without requiring them to be connected to the same WiFi network or even connected to ANY WiFi network. Your iDevice turns into a temporary WiFi hotspot, and your Apple TV connects to it and AirPlays your videos, photos, and music.
Does AirPlay work without Wi-Fi?
Peer-to-Peer Airplay works outside of Wi-Fi and may not work while any of your devices are connected to a network. Therefore, it is essential to first disconnect both your Apple TV and iOS from any Wi-Fi Network, then reconnect to it.
Can you AirPlay to Mac without Wi-Fi?
It is possible to mirror your iPhone/iPad to AirServer without Wi-Fi. In order to do so, you will need to connect your device with a lightning cable to your Mac. Your Mac will then automatically tether your device to the Mac, creating a network between them.