How to Find the AirPlay Code for Your TV (and What to Do if It Doesn’t Show)

You tap AirPlay on your iPhone, pick the TV, and a box asks for a code. You never set one, and you can’t find it in your iPhone’s settings. That’s because AirPlay verification codes are displayed by the receiving TV or streaming device, not stored in your iPhone’s settings.

Quick answer: The AirPlay code is an onscreen passcode that may appear on your TV when you start a connection. Start AirPlay from your iPhone, iPad or Mac, look at the TV, and enter the code on your device when prompted. Depending on the TV’s security settings, a code may not be required. If no code appears, first check whether AirPlay connects without one. If the connection fails, confirm that AirPlay is turned on, both devices are on the same Wi-Fi network, and you’re looking at the correct TV or HDMI input.

Television screen showing a grid of streaming app icons
Photo by Nicolas J Leclercq on Unsplash

Where to find the AirPlay code

  1. Connect your iPhone or iPad to the same Wi-Fi network as the TV.
  2. Open Control Center and tap Screen Mirroring, or tap the AirPlay button in a video app.
  3. Choose your TV from the list.
  4. Look at the TV. If it requires an AirPlay code, the code appears on screen.
  5. If prompted, enter the code shown on the TV on your iPhone or iPad. If no code is requested and the connection succeeds, there’s nothing more to do.

These are the steps in Apple’s AirPlay guide, which says to enter the passcode on your device if one appears on the TV. The code is provided by the receiving device when verification is required, so you won’t find it in your iPhone’s settings.

Code or password: which one is it asking for?

Onscreen codeAirPlay password
Where it comes fromThe receiving TV or streaming device displays it on screen when verification is requiredA password may be configured in the receiving device’s AirPlay settings
Does it appear on the TV?YesGenerally not; a custom password isn’t shown as a temporary onscreen code
What to doRead it off the TVCheck or change it in the TV’s AirPlay settings

If your device asks for a password but no code appears on the TV, check the TV’s AirPlay security settings (below). A custom AirPlay password may be turned on instead of onscreen verification. Depending on your TV model, you may be able to change or turn off the password requirement, or choose onscreen code verification instead.

AirPlay code settings by TV brand

Samsung

Go to Settings > All Settings > General (or Connection on newer models) and select Apple AirPlay Settings. Under Require Code you can choose to ask for a code the first time only, every time, or use a password you create. See Samsung’s AirPlay instructions.

Roku TV and Roku players

Go to Settings > Apple AirPlay and HomeKit. Make sure AirPlay is On, then check Require Code. Roku’s AirPlay support page lists compatible devices.

Apple TV

On Apple TV, open Settings > AirPlay and HomeKit (called AirPlay and Apple Home on newer software), then select Allow Access. Choose who can connect and whether to require a password. Apple says a first-time AirPlay connection may display an onscreen password for you to enter. Apple’s page on AirPlay passwords on Apple TV has the details.

LG, Sony, Vizio and others

AirPlay settings vary by manufacturer, model and software version. Look for AirPlay or Apple AirPlay and HomeKit in your TV’s settings, then check whether AirPlay is turned on and what connection security options are available. Your manufacturer’s support pages have the exact menu path.

AirPlay code not showing on the TV? Try this

  1. Check you picked the right TV. In apartments, hotels and offices, the list can include a neighbor’s TV. If the code never appears, you may be sending the request to a screen in another room.
  2. Wake the TV and go to its home screen. Some TVs won’t show the code while they’re in standby or showing a screensaver.
  3. If you use an Apple TV or streaming box, switch the TV to that HDMI input. The code is displayed by the box, so you won’t see it on another input.
  4. Confirm both devices are on the same Wi-Fi network. Guest-network isolation or router settings that block device discovery can also stop AirPlay from working.
  5. Make sure AirPlay is supported and turned on on the receiving TV or streaming device. Not every smart TV or streaming player supports AirPlay.
  6. Restart the TV, your phone and the router. Unplug the TV for a minute instead of only using the remote.
  7. Reset the pairing. On Samsung and Roku devices that offer it, try Reset Paired Devices under the AirPlay settings, then connect again. On other TVs, check the manufacturer’s instructions before resetting AirPlay connections.
  8. Update the TV’s software and your iPhone.

Other streaming problems on the same TV? See our guides to smart TV apps that keep crashing and Samsung TV screensaver settings.

How to stop the TV asking for a code every time

On compatible TVs, set Require Code to First Time Only to avoid repeated code requests from devices you’ve already paired. You may still need to verify again after resetting paired devices or changing security settings. On a shared network, such as an apartment building or dorm, keep AirPlay access restricted so that neighbors can’t send video to your screen.

Frequently asked questions

What is my 4-digit passcode for Apple TV or AirPlay?

If AirPlay asks for a four-digit code, check the TV screen while connecting and enter the displayed code on your device. It isn’t a permanent PIN stored on your iPhone.

Why isn’t the AirPlay code showing up on my Apple TV?

Make sure AirPlay is turned on, your Apple TV is awake, and the TV is on the Apple TV’s HDMI input. Check Settings > AirPlay and HomeKit (or AirPlay and Apple Home) for access and password requirements, and restart both devices if the connection still fails.

Why is my TV asking for a password for AirPlay?

Your TV or streaming device may require a custom AirPlay password or an onscreen verification code. Check the receiving device’s AirPlay security settings to see which option is turned on.

Can I find the AirPlay code on my iPhone?

No. Your iPhone only asks for it. The code is shown on the TV.

Why isn’t my TV showing up for AirPlay at all?

The TV may not support AirPlay, AirPlay may be turned off, or network settings may be stopping the devices from finding each other. Confirm compatibility, check the Wi-Fi connection, restart both devices and install any software updates.

What if the TV isn’t mine, like in a hotel?

Hotel TVs often restrict AirPlay or use their own pairing screen. Follow the instructions on the TV or ask the front desk.

How we researched this guide

We researched this guide using Apple’s official AirPlay documentation and Samsung’s and Roku’s support resources on November 15, 2026. We did not perform hands-on device testing. Settings and available options vary by manufacturer, model and software version.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top