# Install KROMA on a TV

KROMA is not in the TV app stores yet, so how you install it depends on your
TV. This page tells you which guide to follow, and how a TV finds your server
and signs in once the app is installed.

## Find your TV

| Your TV or box | Guide | What you need |
| --- | --- | --- |
| Samsung, 2017 or later | [Samsung TV](https://kroma.tv/docs/samsung-tv.md) | a computer, a free Samsung account, about 10 minutes the first time |
| LG, webOS 4.0 (2018) or later | [LG TV](https://kroma.tv/docs/lg-tv.md) | a computer, a free LG developer account |
| Android TV, Google TV, NVIDIA Shield, Philips, Sony, TCL | [Android TV](https://kroma.tv/docs/android-tv.md) | a Google account, or the `.apk` file, or a computer |
| Amazon Fire TV with Fire OS | [Android TV: Fire TV](https://kroma.tv/docs/android-tv.md#amazon-fire-tv) | the Downloader app |
| Apple TV | [Apple TV](https://kroma.tv/docs/apple-tv.md) | an iPhone or iPad, and TestFlight |

Some TVs cannot run KROMA: LG sets from 2016 and 2017 (webOS 3), Philips sets
that run Saphi or Titan OS, and the newest Fire TV sticks, which run Vega OS
instead of Fire OS. On those, use a streaming box such as a Google TV, an
Apple TV or a Fire TV with Fire OS, or open KROMA in the TV's web browser.

## Install from a computer

Samsung, LG and Android TV sets install KROMA from a Mac, a Windows PC or a
Linux computer, with KROMA's own installer. It needs [Node.js](https://nodejs.org) 22 or
later. Each guide above says what to turn on on the TV first. Then start the
installer:

```bash
npx @kromatv/installer
```

The installer asks which version of KROMA and which kind of TV, finds the TVs
on your network and installs KROMA on the ones you tick. If you have TVs of
several brands, choose **Every kind** at **Which kind of TV?**.

Later, update KROMA on every TV that this computer installed it on:

```bash
npx @kromatv/installer update
```

On Windows, run it in PowerShell or Command Prompt, not in WSL: WSL sits on a
network of its own and does not find the TV.

## Connect the TV to your server

When KROMA starts on a TV for the first time, it looks for your server:

1. It searches your home network for a KROMA server on port `4040`. If it finds
   one, it connects without asking.
2. If it finds none, it shows **Add a server**. Type the server's address with
   the remote, for example `192.168.1.50:4040`, then select **Connect**.

The search fails when the TV and the server are on different networks, such as
a guest Wi-Fi, or when the server uses another port than `4040`. Type the
address in both cases.

If the server has no account yet, the TV shows **This server is not set up
yet** and the server's address. On a phone or computer, open that address in a
web browser and create the owner account, as in [First run](https://kroma.tv/docs/first-run.md). The
TV asks the server again every few seconds, and goes on to the sign-in below
once the account exists.

## Sign in on the TV

Typing a password with a remote is slow, so the TV asks another device to sign
it in. The TV shows two ways:

- **From your phone, on the same network.** Open KROMA on your phone, signed
  in. It lists the TVs that are waiting nearby. Tap yours and approve.
- **With a code, from anywhere.** The TV shows a four-digit code and a QR code.
  On a phone or computer that is signed in to KROMA, select
  **Connect a device** in the menu, enter the code, and select **Authorize**.
  This works across networks, even from a phone on mobile data. Scanning the
  QR code with a phone's camera opens the same page in its browser, as long as
  the phone can reach the server's address.

The TV then shows the profiles of your account. A profile with a PIN asks for
it.

> [!TIP]
> To sign a TV in to someone else's account, they approve it from their own
> phone, or enter the code while signed in to their own account.

## Next steps

- [Troubleshooting](https://kroma.tv/docs/troubleshooting.md#a-tv-or-app-does-not-find-the-server)
  if a TV cannot find or reach the server.
- [Hardware transcoding](https://kroma.tv/docs/hardware-transcoding.md) if a film plays on your
  phone but not on your TV.
