Self-Hosting · Game Streaming
Sunshine and Moonlight: Local Game Streaming
Cloud gaming services rent you a computer in a data center and stream its picture to your TV. The same trick runs in reverse on hardware you already own: your gaming PC hosts, your screens receive, and the stream never leaves your own network. Sunshine is the host software — the open-source replacement for the GameStream feature NVIDIA retired — and Moonlight is the client that runs on nearly everything with a screen. This guide installs the pair, makes the one decision that matters (the encoder), and walks the clients, including the part the cloud services cannot match: it works with the internet unplugged.
Published Nov 24, 2026
Two pieces, and why they exist
The setup has a host and a client. The host is the gaming PC, running Sunshine — free, open-source software (GPL-3.0) that captures the PC’s picture and sound, encodes them as video, and serves them to clients on your network. The current stable release is the 2026.914 series (September 2026), and it runs on Windows and on Linux, as a Flatpak or in Docker. The client is Moonlight, the app you install on whatever you actually sit in front of: it receives the stream and sends your controller, keyboard and mouse back the other way.
The pair exists because of a retirement. Moonlight began as a client for NVIDIA’s GameStream, the streaming feature built into GeForce cards — and NVIDIA has retired GameStream from its newer drivers, leaving the protocol without its original host. Sunshine is the community-built replacement that stepped into that gap, which is why a two-project setup is now the standard shape of local streaming regardless of whose graphics card you own. Pairing is simple: the client finds the host on your network, shows a PIN, and you type the PIN into the host’s web page once per client. No account is created at any point in that story.
Installing Sunshine on the gaming PC
On Windows, install Sunshine from the project’s releases and let it run as a service, so the host is streamable from the moment the PC boots rather than from the moment somebody logs in and launches an app. On Linux, the Flatpak is the low-maintenance route, with a Docker deployment for hosts that already run everything that way. First launch asks you to set a username and password for Sunshine’s own web interface — that page, served by the host itself on your network, is where everything is configured: the applications clients can launch, the encoder settings, and the list of paired clients.
Sunshine presents clients a small library: the desktop itself, plus the games and launchers it detects, Steam among them. Launching the desktop entry is the underrated option — it hands you the whole PC, which turns every client into a thin terminal for anything the PC can do, games or otherwise. Add individual games when you want a cleaner couch menu. Nothing in this setup phones anywhere: the web interface is local, the pairing is local, and the stream is local.
The encoder is the decision that matters
Everything about how the stream looks and what it costs the host comes down to one component: the encoder, the hardware that turns the game’s frames into video. Modern graphics hardware carries a dedicated encoder block — silicon that does nothing but compress video — and Sunshine uses whichever your system offers:
- NVENC, on NVIDIA cards, is the mature default: the encoder that GameStream was built on, with quality and behavior Moonlight clients are tuned around.
- Quick Sync, on Intel processors with integrated graphics, is the quiet achiever — a streaming host whose discrete card is busy rendering can hand the encoding to the integrated GPU entirely, and mini PCs without a gaming card can still host a stream of lighter games.
- AMF, on AMD cards, is the equivalent block on team red, configured the same way in Sunshine’s settings.
- On Linux, VA-API is the interface Sunshine drives the same hardware through.
The reason hardware encoding matters is what it does not use: the encoder block is separate from the silicon that renders the game, so the stream’s cost to frame rates is small. Sunshine also offers a software encoder as a fallback, and the right way to read that option is as a warning light rather than a choice — software encoding spends the processor cores your games and your operating system are already using, and a host that falls back to it is telling you something about its hardware. Set the encoder to match your card once, at install, and the topic is closed.
The remaining tuning lives on the client side, per screen: resolution, frame rate and bitrate. Start from Moonlight’s defaults for the screen in front of you, then raise the bitrate while the picture improves and stop when your Wi-Fi starts to object. A wired host — the gaming PC plugged into the router rather than on wireless — removes half of the network from that equation and is the single cheapest upgrade to any streaming setup.
Moonlight on every screen you own
Moonlight’s client list is the breadth of the whole arrangement: Windows, macOS and Linux computers; Android phones and tablets; iPhones, iPads and Apple TV; the NVIDIA Shield; Raspberry Pi; and the Steam Deck, where it installs as a Flatpak — that setup gets a guide of its own, because the Deck is the streaming client most households already own. The current client release is the 6.2 series (October 2026). The practical result: the gaming PC stays where it lives, and the game appears on the living-room TV box, the handheld, and the laptop in the spare room, as if the PC were in each of them.
There is also a fork of the host worth knowing about once this baseline works: Apollo, which adds a virtual display that matches each client’s screen automatically. It is an optimization on top of everything in this guide, not a different system.
The internet can be down. This still works.
Pull the internet cable out of the router and repeat the whole flow: the client finds the host, the PIN pairs them, the game streams. No account was consulted, no cloud relay carried anything, no subscription checked anything — because there is none of any of it. The stream is a conversation between two devices on your own network, brokered by nobody. That is the property this site exists to point at: a capability people increasingly rent from cloud gaming services, running entirely on hardware already in the house.
Playing from away from home is a different problem with a different answer — the stream has to cross the internet deliberately, and the way to carry it is the private-network route from the friend access guide: put the client and the host on the same Tailscale network and Moonlight treats the distance as a detail. What you should not do is expose Sunshine’s ports to the internet directly.
How this differs from Steam Remote Play
Steam’s built-in option is the obvious comparison, and the fair way to compare them is by structure rather than by anybody’s latency stopwatch. Remote Play is free and genuinely zero-setup — but it lives inside Steam. It streams Steam games, through a Steam account, with Valve’s client brokering the connection even when both machines are in the same room, and it offers a short list of knobs. Sunshine and Moonlight are nobody’s storefront: they stream any game from any launcher, or the whole desktop; they expose codec, bitrate and resolution control per client; and with the Apollo fork they can invent a display matched to the screen you are holding. If your library is entirely Steam’s and you value never thinking about any of this, Remote Play is a reasonable default. The moment the library includes games from elsewhere, or the target screen is a handheld whose settings you want to tune, the Sunshine arrangement is the one built for the job.
If your gaming PC is a virtual machine
Everything above assumes the host is a PC. If your gaming rig is a Windows VM on a Proxmox host with a passed-through graphics card, Sunshine installs inside the VM as it would on bare metal, and the encoding hardware comes with the card. The passthrough itself — the part with actual sharp edges — is covered by the site’s Proxmox GPU passthrough guide; this guide picks up where that one ends.
Official documentation and references
- Sunshine on GitHub — the host software: releases, supported encoders, and the Windows and Linux installs
- Moonlight — the client for every platform, with the pairing and setup documentation
Frequently asked questions
Do I need an NVIDIA card for Sunshine and Moonlight?
No. Sunshine encodes with whichever hardware your system has: NVENC on NVIDIA cards, Quick Sync on Intel integrated graphics, AMF on AMD cards, and VA-API on Linux. NVIDIA’s retirement of GameStream is why Sunshine exists, but the setup is brand-neutral in practice.
Does local streaming work without an internet connection?
Yes, completely. Pairing is a PIN exchanged between the client and the host on your own network, and the stream never leaves it. No account, cloud relay or subscription is involved at any step, so an internet outage changes nothing about game night on the couch.
Should I use Steam Remote Play instead?
If your library is entirely on Steam and you want zero setup, Remote Play is a fair default. Sunshine and Moonlight earn their place when you stream non-Steam games or the whole desktop, want per-client control of resolution and bitrate, or stream to a handheld like the Steam Deck with settings tuned for its screen.
Why does the host PC need to be wired to the router?
It does not strictly need to be — but the stream crosses the network twice in effect, host to router and router to client, and a wireless host makes both legs wireless. Wiring the host leaves only the client’s leg on Wi-Fi, which is the cheapest stability upgrade a streaming setup can get.
Can I stream away from home?
Yes, by carrying the connection on a private network rather than exposing the host: put the away-from-home client and the host on the same Tailscale network and Moonlight works across it. The friend access guide works through that route and explains why Sunshine’s ports should never be forwarded to the internet directly.

