AirPlay no longer working MacBook Pro to Apple TV - requests code but will not work

Up until tonight I've had no problems with Airplay from my Macbook (13-inch, Late 2013) to my Apple TV.


Now when I try airplay the Macbook asks for a 4 digit code, which comes up on the Apple TV. I enter it and get the message get the message:

"Could not connect to Apple TV"


I tried typing an incorrect code to see what would happen and it just keeps requesting the code, so there is communication between devices.


I have checked:

They are both on the same network.

Both signed into same apple ID.

Restarted the Apple TV

Restarted the MacBook

Restarted the router.

Both are up to date with software (tvOS 10.0.1 & macOS Sierra 10.12.1)


I have gone into Airplay > Security on the Apple TV and it is set to "None." It should not be asking for the passcode.


I have tried to Airplay from my iPhone to the Apple TV and that works fine (but does ask for code despite 'Security' set to 'None', but the Macbook to the Apple TV doesn't get that far.


I am finding this extremely frustrating as this is the main reason I bought the Apple TV. If anyone has any advice it would be greatly appreciated.

AppleTV 2, tvOS 10.0.1, null

Posted on Nov 13, 2016 3:31 PM

Reply
17 replies

Jan 3, 2017 6:53 AM in response to LondonDario006

SOLVED!


Finally...


Short version:

Removing the keychain fixed it!


Go to 'User' > Library

(With finder open, head to the 'Go' in the top menu, hold down the alt/option key so that 'Library' is displayed, click on that to open the Library folder).

And then find the 'Keychains' folder. Rather than deleting it in case you need to retrieve something later just move the folder to the desktop or similar.


And I think I then did a reboot but can't quite remember. Probably. Rebooting every now and then is good.


Obviously I had to re-enter information and passwords in numerous places which is a pain but it cleared out whatever bug was causing the problems between the MacBook and the Apple TV and now I can Airplay just as I could before.


So still not sure what the route cause was but clearing and rebuilding the Keychains folder has fixed it.



Longer moan:


Apple Support really did poorly on this one. From November until Christmas I was getting 'We've got our engineers looking at the log file.'

"I'm personally taking on this investigation and will personally get back to you"... nothing heard.

"I'm personally taking on this investigation and will personally get back to you"... nothing heard...

"I'm personally taking on this investigation and will personally get back to you"... nothing heard...


I had appointment times where they were supposed to call me, and nothing.


I had to call them several times until I finally got someone who went through the engineers response and told me to try the possible fix above, which took all of five minutes. No idea why the several people I'd spoken to before couldn't have done that.


---


Anyway, hope that helps others with the same problem!

Jul 15, 2017 9:35 PM in response to LondonDario006

I live in Australia and started having this problem when I just bought the brand new kaby-lake 2017 MacBook Pro and the same thing was happening to me. But airplay worked fine with my iPhone 7 Plus.


I called Apple support in Australia, and they solved my problem with firewall settings.

1. Go to System preferences > security & privacy

2. Click the firewall tab

3. Click firewall options (if greyed out, click the lock below to make changes, enter your system password)

4. Ensure "Block all incoming connections" is NOT ticked

5. Ensure "automatically allow built-in software to receive incoming connections" IS ticked.


I had the first one ticked, and that's what was causing my problems.


Saved the changes in system preferences and then airplayed perfectly straight away!

Nov 14, 2016 5:16 AM in response to LondonDario006

Try the following steps (you may have already tried some), check whether things are working after each step where appropriate, before trying the next.


  1. Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
  2. Check that both devices are on the same network (System Preferences > Network, on the Mac and Settings > General > Network, on the Apple TV).
  3. Restart the Apple TV (Settings > General > Restart).
  4. Restart the Apple TV by removing ALL the cables for 30 seconds.
  5. Restart your router. (Also try removing it’s power cord for at least 30 seconds)
  6. Restart your computer.


If you are still having problems, try turning off bluetooth if it's enabled, also try using 802.11n for wifi if you are currently using either 802.11b or 802.11g. You might also try removing any other software related to screen sharing or streaming to remote displays that you might have installed at some time.

Additionally, the following article(s) may help you.


Troubleshooting AirPlay

Troubleshooting Wi-Fi networks and connections

Recommended Wi-Fi settings

Wifi Diagnostic Software (for Mac users)


You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.

Nov 14, 2016 2:28 PM in response to Winston Churchill

Thank you for the response but I am still unable to get it to work.


All 1-6 already tried, and tried different ghz ranges on the router


In case it was the router having problems I set up a temporary network using a personal hotspot and linked the MacBook to the Apple TV with that, exactly the same problem.


As stated, I can airplay from iPhone > Apple TV without difficulty (although it still asks for code).


I am at the stage of wanting to do a factory reset on the Apple TV, but frustrated this seems necessary. I'll see if I can contact Apple around work times to check what they suggest.

Nov 29, 2016 2:45 PM in response to Winston Churchill

I have the exact same issue with my Macbook Pro which I have recently updated to Sierra (ver 10.12.1).


I have also done all the steps mentioned above and it is still not working.


I get the prompt for a code (which is then displayed on the Apple TV).

The Apple TV also recognises the Macbook Pro because it says 'Jamie's MacBook Pro' - then the 4 digit code.

I input the code but then the error message 'cannot connect to Apple TV' appears on my Macbook Pro.


ALL my other devices are working with Airplay, these include;

Wife: iPhone 7 and MacBook Air

Me: iPhone 6 Plus


Why is only My Macbook Pro not working??


@LondonDario006 - don't bother with an Apple TV factory reset - I did mine, and it changed nothing. Waste of time and now all my apps have gone and need to be redownloaded and signed into - pain in the neck.


Apple please help.


Regards,

Jamie

Nov 29, 2016 3:00 PM in response to JayHiggins

I spent the other night on the phone to Apple for an hour an a half. Mostly actually talking with people and not on hold, but their hold music was the Bare Naked Ladies so I didn't mind when I was put on hold for a bit.


The level 1 genius went through similar stuff we've all already tried, and then passed me onto a level 2 genius.

Short version - still not sorted, but some idea where the problem may lie.


Longer version...


We went through creating a fresh user account on the MacBook, not signing into icloud or anything and that did allow me to airplay indicating it's something associated with my user profile causing the problems. I could migrate everything over, but that doesn't help find the cause and it may just end up coming up again so...


We went through malware detection, installed Malwarebytes Anti-Malware and deleted a few things that came up (not sure if they were genuine malware or not).

Turned off antivirus... and then deleted it, and all fragments of it, and all preferences - yeah, it didn't help but now I need to spend time reinstalling that.

Went through Login Items, and Activity Monitor to try and find anything causing the problem. We shut down everything menu bar related I had running which included...


-Kaspersky (then deleted)

-1Password

-Dropbox

-DayOne

-TextExpander

-f.Lux

-Adobe creative cloud


Many reboots, restarts, power down, safe mode (or whatever the Mac one is called) etc and still no joy.


It was left with me creating a system log file capturing the events to send to the next level help, the grand wizards who live on an isolated mountain top far off in the mists smoking the weed of the shire and they will use their dark arts to commune with the dread powers of the vortex and see what mysteries of the universe they can unveil. Or something.


5-7 days and I should hear back to see if the log file gives any enlightenment to the mystic powers.


I'll let you all know as and when I hear back. In the meantime creating a new clean user profile does mean you might be able to airplay from there until we find out what's causing the problems.

Dec 9, 2016 10:46 AM in response to SirOscar

Right. Apple have not been excelling at Customer Service on this issue. Long weary moan ahead. The short version is it's still not fixed, and still awaiting updates form Apple.



So I sent the capture files to the senior advisor on the same day I'd spoken to him, the 24th November, and patiently waited for an update which never came.


My patience ran out and I called them on Tuesday 6th December, nearly two weeks since their 'we'll get back to you in 5-7 days.'


I spoke to a new advisor. I wasn't actually in front of my Apple TV at the time as I was just trying to get an update, but he basically said there was no update. I had to resend the capture files to him using a different method, and do a factory restore on the device, and we scheduled a callback for Thursday night when I'd hopefully have an update and be in front of the Apple TV. I got an e-mail from him saying 'actually, Thursday doesn't work for me can we do Friday instead.' I replied yes...and Friday evening came without a call.


Due at 1730, by 1815 I'd got fed up of waiting and called. Couldn't get through to him. So I spoke to Senior Support Person number 3. This one was very keen and apologetic of his colleagues lapses at getting back to me. He went over the details and confirmed they have the capture file, but nothing has been done on it. So he sent it up to the engineers as he was on the phone to me and has arranged a callback from his colleagues next week (as he is away), and a call from him on the 19th December to make sure the others have been in touch in the meantime.


We'll wait and see. The rate things are going I am not really expecting this problem to be sorted out this year.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AirPlay no longer working MacBook Pro to Apple TV - requests code but will not work

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