AirPlay Mirroring Without Apple TV (using RPi)





Introduction: AirPlay Mirroring Without Apple TV (using RPi)

Ever wanted to mirror your iPhone, iPad, iPod or Mac to your TV, but you had no Apple TV?
Now you can without an Apple TV. With a Raspberry Pi and some free time you can transform your Pi into an AirPlay device that can mirror your iDevice to your TV using rPlay!

If you liked this instructable, please vote it! Thanks!

What you need:
1. A Raspberry Pi
2. A Wifi dongle or Ethernet connection
3. A PC
4. USB keyboard and mouse
5. An MicroSD card (4 GB or larger)
6. TV or a HDMI screen
7. HDMI cable
8. MicroUSB charger

Step 1: Preparing Your Pi

First, you must prepare your Pi!

Download the Raspbian image here:

Extract the image from the archive and plug your microSD card into your pc. Format it using SD Card Formatter (You can download it here: )

Using Win32DiskImager (Download it here: ), select the location of your Raspbian Image , the SD card drive and than press 'Write'

After the program finishes writing the OS to the SD card, unplug your SD card. You won't need the PC anymore. :)

Step 2: Setting Up Your Pi

Now, it's time to set up your Pi!

Plug your microSD card, USB keyboard and mouse, Wifi dongle or Ethernet cable, HDMI cable into the Pi. After that plug the microUSB charger too. Wait for the Os to load and than you can login with pi as the username and raspberry as the password.When the configuration menu shows up, expand the filesystem and n Advanced Option select memory split and type 256 . After that, reboot the Pi. If you are using Wifi dongle, type startx to launch the desktop and than connect to your network.

After that, you must update your Pi to the newest version. Open a terminal and write:

sudo apt-get update

sudo apt-get upgrade

sudo rpi-update

and wait for the Pi to update. After that, reboot your Pi.

Step 3: Installing the Software

You must install the needed software:

sudo apt-get install libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl

wget -O rplay-1.0.1-armhf.deb

sudo dpkg -i rplay-1.0.1-armhf.deb

Now you have installed rPlay and it will run automatically on boot. Reboot your Pi.

Step 4: Activating RPlay

Before you use rPlay, you must enter the license key.

Launch the desktop and open the web browser.

Type http://localhost:7100/admin and hit enter.

The username is admin and password admin.

Scroll to the end of the page and enter the License key (License key: S1377T8072I7798N4133R)

Step 5: Connecting Your IDevice to RPlay

On your iDevice, go to Airplay and select rPlay(raspberry) . The mirroring should begin!

Android users can use the YouMap app in order to connect to rPlay.

If you liked this instructable, please vote it! Thanks!

The End!



    • Planter Challenge

      Planter Challenge
    • Casting Contest

      Casting Contest
    • Woodworking Contest

      Woodworking Contest

    We have a be nice policy.
    Please be positive and constructive.


    3 Questions


    localhost not open...

    i can try sudo rplay but it contain error like: this


    bash: rplay:: command not found



    I was able to get everything done step by step. I just cant connect to rplay. My iOS devices are not finding it as an option when trying to screen mirroring.

    What do I do if I can't reach the web GUI to enter the license key? Have made sure rplay is running and that all packages are up to date.
    When I tey to connect it gives error "Connection refused: host can't be reached".
    I also use rasbian lite

    sudo rplay (im also on ras lite)



    first of all thanks for the good description, seemed to work very well without any kind of error for me. eg. my YT app finds the Pi but cant quite connect. Same goes for Netflix. In the iOS Menu the Raspi doesnt show up. When I say "sudo rplay" it tells me

    "Another instance using port 7100 is running, please kill it first. Exit now.."

    I tried to check what uses the port but i dont really know what it is or how to end it. So if you have any ideas on fixing this pls tell me :)

    WHen I get to step 3 and enter the command to install. It asks me y or no. I hit yes. But then after that it says Abort.

    WHen I got to the next step of Type http://localhost:7100/admin and hit enter.

    I get a host not found message.

    2 replies

    when it is time to install, you are asked n or Y. Don't type 'y' or 'yes', you have to type it exactly as shown: as an upper case Y, otherwise it aborts (some linux programming nerd had a bit of righteous fun with that one!)

    that’s odd because even when I put a capital Y it still aborts

    The rPlay server won’t show up on any iOS 11 device in the house! What can I do? Is rPlay just not compatible?

    Hello, "localhost" do not open in my raspberry, somebody can help me?

    3 replies

    I have this same problem, pleasse help

    Sorry but i'm sitting for ages on a problem with a missing lib. Tried to copyform firmware repo but same error ever

    pi@raspberrypi:~ $ sudo /etc/init.d/rplay status

    ● rplay.service - LSB: rplay server

    Loaded: loaded (/etc/init.d/rplay; generated; vendor preset: enabled)

    Active: active (exited) since Sun 2017-12-31 14:00:14 UTC; 3min 55s ago

    Docs: man:systemd-sysv-generator(8)

    Process: 477 ExecStart=/etc/init.d/rplay start (code=exited, status=0/SUCCESS)

    CGroup: /system.slice/rplay.service

    Dez 31 14:00:14 raspberrypi systemd[1]: Starting LSB: rplay server...

    Dez 31 14:00:14 raspberrypi rplay[477]: Starting rplay:.

    Dez 31 14:00:14 raspberrypi systemd[1]: Started LSB: rplay server.

    Dez 31 14:00:14 raspberrypi rplay[477]: /usr/bin/rplay: error while loading shared libraries: cannot open shared object file: No such file or directory

    May some body helps?

    1 reply

    sudo apt-get install libjpeg8

    E: Command Line Option '0' [from -0] is not known.

    1 reply

    it's the capital letter O

    From reading the comments it seems that Apple has made it impossible to spoof airplay without an AppleTV. BUT...what if you hooked up a transceiver to the external monitor dock on the macbook? The idea is to fool your macbook into "thinking" it's plugged into a monitor when it is actually plugged into a wireless module. This could be done with a Sparkfun redboard ($20) and a transceiver module SparkFun WiFi Shield - ESP8266 ($15) or perhaps the electric imp another 802.11b/g/n transceiver. I suppose it would add another $60, at the most, to your project. Alas, I cannot think of a way to add sound, however.

    Thanks for the instructions! Everything went fine while installing, but it doesn't show up on any iOS device. Any ideas?

    1 reply

    Nothing shows up for me too. Make sure you are on the same network as your pi.

    Will this work without being on a wireless network, say in a car.

    1 reply

    No airplay uses wifi