How to Set Up Sunshine and Moonlight: Install, Pair, Set a Bitrate, Go Remote Safely

Install the latest stable Sunshine release on the gaming PC, open https://localhost:47990 in a browser on that PC and create the web UI credentials, install Moonlight on a client, pair the two with the PIN, stream over your home network, and only then think about the router. The Sunshine usage documentation (the v0.21.0 page) gives that address, tells first-time users to note the username and password they create, and describes the PIN step. Checked on 12 November 2026, three older claims no longer hold: the docs list Windows 11 or later as the host minimum rather than Windows 10, the release notes for Sunshine v0.22.0 require pairing for Wake-on-LAN rather than for every connection, and v0.23.0 is no longer a safe minimum because later releases carry critical security updates. ViGEmBus has also reached end of life, which changes the controller step.

This page is the order of operations. For what each program does and how the host and client talk to each other, read our explainer on what Sunshine and Moonlight actually are.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

What the Sunshine docs list as minimums on 12 November 2026

The Sunshine documentation home page, read on 12 November 2026, lists Windows 11 or later, a Ryzen 3 or Core i3 class CPU and 4GB of RAM for the host, and 5GHz 802.11ac networking for both host and client. Windows 10, a quad-core CPU and gigabit Wi-Fi, the minimums this guide listed before the 12 November check, are not what that page lists now. The master branch of the Sunshine docs, read the same day, lists macOS 15.0 or later with the same Windows 11 and 5GHz 802.11ac figures, so the older macOS 14.2 figure is stale. For the GPU, the same page’s minimum-requirements table lists AMD VCE 1.0 or higher; the NVIDIA and newer AMD figures in the table below appear on that page as 4K and HDR suggestions, not as minimums.

ComponentListed figureNote
Host OS (Windows)Windows 11+Windows 10 is no longer the listed floor for a host.
Host OS (macOS)macOS 15.0+Listed on the master docs page on 12 November 2026; the older 14.2+ figure is stale.
Host CPURyzen 3 or Core i3 classReplaces the older quad-core wording.
Host RAM4GBApplies to the host PC.
Host GPU (AMD), minimumVideo Coding Engine (VCE) 1.0 or higherThe GPU entry in the docs’ minimum-requirements table.
Host GPU (NVIDIA), suggestionGeForce RTX 2000 series or higher on FreeBSD and Linux; GeForce GTX 1080 or higher on WindowsListed among the docs’ suggestions, not its minimums.
Host GPU (AMD), suggestionVCE 3.1 or higher under 4K suggestions; VCE 3.4 or higher under HDR suggestionsSuggestions, not minimums.
Host network5GHz, 802.11acReplaces the older gigabit Wi-Fi wording. A wired host is easier to diagnose (see below).
Client network5GHz, 802.11acSame figure as the host.
Moonlight PC client on WindowsWindows 10 (1809) or later for v6.2.0The client floor is lower than the host floor.

Localtonet’s setup guide notes that Ethernet on the host “is usually easier to diagnose than Wi-Fi”, which is the reason to wire the host even though the docs list 5GHz Wi-Fi as enough.

On the client side, Moonlight has builds for Windows, macOS, Linux, Android, iOS and iPadOS, Apple TV, Android TV, Fire TV and Steam Deck, available from the official Moonlight site and its desktop release page. That release page also offers a portable Windows build for work or public PCs where you cannot install programs, and it states that Moonlight v6.2.0 on Windows needs Windows 10 (1809) or later.

One capture rule explains many black screens later. Per the Sunshine getting-started page, Sunshine on Windows uses the Desktop Duplication API, which only captures from the GPU used for display, so a host that renders on an eGPU needs a dummy display dongle.

As of 12 November 2026, a dummy plug is not always required on Linux. The v0.21.0 usage docs point to a Remote SSH Headless Setup for a headless streaming server “without autologin and dummy plugs”, but only for X11 with NVIDIA GPUs.

Which Sunshine build to install, and the install route on Windows and Linux

Download Sunshine from the LizardByte project’s releases page. Four version points in the changelogs, the releases page and the Moonlight release notes decide which build is safe and which features work.

Sunshine versionWhat changedWhat it means for your install
v0.21Moonlight Android 12.0 added native PS4/PS5 controller support (motion events, LED, battery, touchpad), and its release notes say starred items “require Sunshine v0.21 or later”.Some of the PS4/PS5 controller features need this version or newer.
v0.22.0Moonlight Android 12.1 added end-to-end stream encryption and requires Sunshine v0.22.0 or a nightly build. The v0.22.0 release notes say clients must be paired before they can use Wake-on-LAN.Encryption on Android needs this version or newer. The pairing rule in those notes is about Wake-on-LAN.
v0.23.0The changelog says: “Attention, this release contains critical security fixes. Please update as soon as possible.”Fixes from that release are in later builds, but v0.23.0 itself is no longer the floor (next row).
v2026.906.222525 and v2026.914.233613On 12 November 2026 the releases page flags v2026.906.222525 with “critical security updates” and lists five GHSA advisories for it. v2026.914.233613 is marked Latest and lists one advisory, a high-severity Linux fix.The floor we recommend: the release marked Latest on the releases page, which was v2026.914.233613 on 12 November 2026. Do not run anything older, including an old installer or an old distro-packaged copy.

Newer builds no longer use the 0.x numbering: the docs carry date-style version paths such as v2026.214.224301, and a number like that sits after the 0.x series. On the releases page, pick the release marked Latest, and take a pre-release only if you need a fix that is only there. Where this page links to an older docs version (the v0.21.0 usage page, the v0.23.0 advanced usage page, and the v2026.213.34323 and v2026.214.224301 configuration pages), that is the page the quoted wording came from, not a build to run; a path or setting may have moved since, so confirm it in the docs for the release you install.

On Windows:

winget install LizardByte.Sunshine

After installing or updating virtual input drivers, the Sunshine getting-started page says “it is recommended to restart your computer”, so reboot the host before your first pairing attempt.

On Linux, the Flatpak package is one route, and the usage docs list Flatpak among the packages that set up uinput access automatically:

flatpak install flathub dev.lizardbyte.sunshine
# Debian/Ubuntu: install the versioned .deb from the Sunshine GitHub Releases page
sudo apt install ./sunshine_<version>-1+ubuntu24.04_amd64.deb
# Bazzite
ujust setup-sunshine

Check the filename against the release you download. As of 12 November 2026 the releases page says “Debian and Ubuntu packages now use native versioned filenames, for example sunshine_2026.906.222525-1+ubuntu24.04_amd64.deb”, so an older guide that names sunshine-ubuntu-24.04-amd64.deb for Ubuntu 24.04 is out of date.

If Windows Firewall rules were not added during install, the usage docs for v0.21.0 give a helper script in the install folder. Run it from an elevated Command Prompt, with the path quoted because it contains a space:

cd /d "C:\Program Files\Sunshine\scripts"
add-firewall-rule.bat

Linux needs uinput access for mouse and gamepad events. The usage docs say that the deb, rpm, Flatpak and AppImage packages handle those steps automatically and that third-party packages may not, so a repackaged build is the first suspect when a Linux host streams video but ignores input.

For Linux hosts, the v2026.906.222525 release notes say official Sunshine DEB and RPM repositories are now available in stable and beta channels, allowing updates through apt, dnf or zypper. If you would rather not download a package by hand each time, a repository install fits that. The v2026.914.233613 release notes (14 September 2026) then widened Linux coverage: they list Alpine Linux 3.24 packages, openSUSE Leap 16.0 and Tumbleweed builds, and Ubuntu 26.10 packages.

On a Linux host, this command turns on the Sunshine user service and starts it in the same step, so the host is listening again after a reboot without you launching it by hand:

systemctl --user enable --now sunshine.service

For other distributions, take the exact command from the Sunshine docs for the version you run.

HDR streaming is documented for Windows hosts, while a macOS host has an audio limit covered in the audio section below. On codecs, the documented facts are these: HDR needs a GPU that can encode HEVC Main 10; Moonlight Android 12.0 added experimental AV1 support; and Moonlight desktop v6.2.0 added AV1 hardware decoding on macOS (M3 and later). Whether to use H.264, HEVC or AV1 therefore depends on what both your GPU and your client can decode, so check the client’s release notes before choosing AV1.

First run: credentials, the certificate warning and the PIN

  1. Start Sunshine, then open https://localhost:47990 on the host. The usage docs say you may replace localhost with the host’s internal IP address. The browser warns the site is insecure because Sunshine uses a self-signed certificate; click through the warning.
  2. On first run, create the username and password and write them down, as the docs tell you to. Make the password strong and unique, because the Clore.ai guide says to always set one and never expose Sunshine without authentication.
  3. Install Moonlight on the first client, from the app store or the official Moonlight site. Pair the easiest device first, so that a failure is easy to read.
  4. In Moonlight, choose Add PC and enter the host’s IP address. Moonlight then displays a PIN.
  5. In the Sunshine web UI, open PIN in the navbar, type the PIN and press Enter. The docs say you should get a success message.

Sunshine’s configuration page recommends the web configuration UI over hand-editing the conf file. If you do edit files, the config folder is %ProgramFiles%\Sunshine\config on Windows and ~/.config/sunshine on Linux and macOS, per the v0.23.0 advanced usage page, and /config/ in Docker.

If the PC has more than one GPU, as laptops with integrated and discrete graphics do, open Configuration in the web UI and confirm the right card is selected as the encoding adapter. The adapter_name setting on the configuration page for v2026.213.34323 is described as “Select the video card you want to stream.”; in the conf file it is a line that begins adapter_name = followed by the card’s name, not a number. The master configuration docs give adapter_name = Radeon RX 580 Series as the Windows example and a /dev/dri/renderD128 device path on Linux, in the same key = value form as the upnp = enabled example in the remote access section.

Those neighbouring lines in the conf file do this: encoder picks which hardware encoder Sunshine uses, output_name picks which display on that adapter is captured, fps and resolutions list the frame rates and resolutions the host offers a client, and min_log_level sets how much detail Sunshine writes to its log.

# sunshine.conf (partial example)
encoder = nvenc
adapter_name = <video card name>
output_name = 0
fps = [60, 90, 120]
resolutions = [1280x800, 1920x1080, 2560x1440, 3840x2160]
min_log_level = info

For what to launch, Sunshine offers a generic Desktop entry by default, per its application examples page. Add games or launchers in the Applications tab or in apps.json. Adding Steam Big Picture as its own entry covers launching per game, and a Playnite entry can unify Steam, Epic and GOG.

Returning Moonlight users will notice changes in the v6.2.0 desktop release. New installs now default to 1080p instead of 720p. In windowed mode the cursor is no longer captured by default; clicking the streaming window captures it. DualSense adaptive trigger support was added and requires a compatible host. The release also fixed vulnerabilities that let a malicious host crash Moonlight when connecting, so pair only with hosts you control.

From Mbps to gigabytes per hour: sizing the stream to your upload and data cap

The Clore.ai Sunshine guide, a third-party guide for rented servers and not official Sunshine numbers, suggests 1080p60 at 20 Mbps (Good), 35 Mbps (Great) or 50 Mbps (Excellent), 1440p60 at 50 Mbps (Great) and 4K60 at 100+ Mbps (Excellent). Its tiers stop at a quality label. What decides whether a tier works away from home is how much data it moves: multiply the bitrate in Mbps by 3600 seconds, divide by 8 bits per byte, then divide by 1000 to get decimal gigabytes per hour.

ProfileBitrateData per hourHost upload needed away from home
1080p60, Good (Clore.ai)20 Mbps9.0 GBAt least 20 Mbps
1080p60, Great (Clore.ai)35 Mbps15.75 GBAt least 35 Mbps
1080p60 Excellent and 1440p60 Great (Clore.ai)50 Mbps22.5 GBAt least 50 Mbps
4K60, Excellent (Clore.ai)100 Mbps45.0 GBAt least 100 Mbps
Lower profile for cellular or slow shared Wi-Fi (our addition)15 Mbps6.75 GBAt least 15 Mbps
Lower profile for cellular or slow shared Wi-Fi (our addition)10 Mbps4.5 GBAt least 10 Mbps

The figures assume the stream holds exactly the set bitrate. Multiply the hourly figure for your row by the hours you expect to stream, and divide your data allowance by it to see how many hours the allowance lasts. On your home network the host’s upload does not matter; away from home it has to carry at least the bitrate you set. Choose the row by the resolution you stream, which is our reading of Clore’s tiers and not a measurement.

The desktop release notes say Moonlight’s bitrate limit can be raised to 500 Mbps, a ceiling introduced in the v6.1.0 client and still present in v6.2.0, and that these bitrates are not officially supported but can improve image quality if client and host can handle it, with Ethernet strongly recommended. That ceiling is for high-end wired LAN streaming, not typical home or remote connections, so the tiers above remain the starting point away from home.

To check real network latency and decode numbers instead of judging from how the stream looks, launch a game through Sunshine from the client and press Ctrl+Alt+Shift+S. Moonlight’s documentation of keyboard shortcuts lists it as “Open performance stats overlay (not supported on Steam Link or Raspberry Pi)”.

For HDR, the usage docs say streaming is supported for Windows hosts with NVIDIA, AMD or Intel GPUs that can encode HEVC Main 10. They also say to enable the HDR option in the Moonlight client settings, otherwise the stream will be SDR. On the client, the desktop release notes say HDR streaming is supported with software decoding, which requires a GPU with Vulkan or Metal support; v6.2.0 carries that forward from v6.1.0. If the host GPU has no usable hardware encoder, Localtonet’s guide notes that software encoding exists but puts more work on the CPU and should not be assumed to match a hardware encoder.

Two latency settings come from the v0.23.0 advanced usage page: Fast Sync on NVIDIA may reduce latency, and on Windows, enabling Enhanced Sync in AMD’s settings may reduce it by an additional frame. Check the wired-host advice from the requirements section before touching either.

Muting the host and choosing a gamepad route now that ViGEmBus is end of life

For audio, Sunshine’s virtual_sink setting names a virtual audio device such as Steam Streaming Speakers. The configuration page says this “allows Sunshine to stream audio, while muting the speakers”. A macOS host can only capture microphones, per the configuration docs, and the same configuration page names Soundflower or BlackHole as the virtual audio device for streaming system audio from a Mac.

On Windows, gamepads used to mean installing ViGEmBus. The configuration page now says it “has limited gamepad features, supports only Xbox 360 and DualShock 4 emulation, and has reached end of life”, and the troubleshooting page calls it a limited alternative that has reached end of life. The configuration page describes a Virtual HID Driver option instead; read its gamepad section for the exact setting in your version. Treat a guide that still makes ViGEmBus the controller step with caution.

On the client side, Moonlight Android 12.0 added native PS4/PS5 controller support, and the desktop client v6.2.0 added DualSense adaptive triggers, which need a compatible host. Localtonet’s advice applies to all of it: test the actual controller, game, host operating system and client combination, because a controller being recognized by the client does not guarantee the host can emulate it.

Leaving the house: port forward, mesh VPN or outbound tunnel

Go remote last. Localtonet’s checklist says to complete installation, pairing, controller testing, audio testing and at least one local stream before configuring remote access, and every row of the troubleshooting table below is easier to read if the LAN already works.

The Sunshine usage docs warn: “Exposing ports to the internet can be dangerous. Do this at your own risk.” Clore.ai’s Docker guide lists 47990 for the HTTPS web UI and 48010 for streaming; take the full port list from the docs for the version you run, and never forward 47990.

If you do forward ports, give the host a static local IP address, either a DHCP reservation on the router or a manual assignment, so the forwarding rules keep pointing at it. The configuration page also lists a upnp setting (upnp = enabled) that lets Sunshine ask a supporting router to open its ports. It is disabled by default, and the docs’ warning about exposed ports applies to it as much as to manual rules.

Your networkRouteWhat to watch
Public IP address and access to the routerForward only the streaming ports to the host, never the web UI port 47990.The docs’ warning about exposed ports applies; keep Sunshine on the latest stable release.
No public IP address (carrier-grade NAT) or no router accessA private mesh VPN such as Tailscale or WireGuard, or a service whose client connects outward. Add the host in Moonlight by the address the VPN gives it.Localtonet says its client “establishes an outbound connection”, so no inbound router rules or public IP are needed. That is a vendor claim about its own commercial product.
Capped mobile data or slow shared Wi-FiAny route above, with a lower bitrate profile.Use the 15 Mbps or 10 Mbps rows of the data-per-hour table.

On the VPN route, the Moonlight desktop client can do the same two steps from a terminal: moonlight pair registers the client with the host at that tunnel address, and moonlight stream then starts a named application at the resolution, frame rate and bitrate you pass it. The option names below come from the moonlight-qt command-line parser source: --resolution, --fps and --bitrate, with the bitrate in kilobits per second, so 20000 is the 20 Mbps row of the data-per-hour table.

# Example: connecting to a Moonlight host over a WireGuard
# tunnel address instead of a forwarded public port
moonlight pair 10.10.0.4
moonlight stream 10.10.0.4 "Steam Big Picture" --resolution 1920x1080 --fps 60 --bitrate 20000

If ease of remote access matters more than control, our Parsec vs Moonlight vs Steam Link comparison covers that trade.

Failures you can expect, and the section that fixes each

SymptomLikely causeFixSection
Host not listed in MoonlightOn Windows, the firewall rules were not added during installRun add-firewall-rule.bat from the install folder, or choose Add PC and enter the host IPBuild and package route; first run
Black screen after connectingOn Windows, capture only works from the GPU used for displayAttach a display or a dummy display dongle for an eGPU hostMinimums
Host speakers still play, or no system audio from a macOS hostNo virtual audio device set, or macOS can only capture microphonesSet virtual_sink; on macOS add one of the virtual audio devices the docs name (Soundflower or BlackHole)Audio and gamepads
Controller connects but does nothing in gameGamepad driver or Linux uinput access missingUse the Virtual HID Driver option rather than ViGEmBus; on Linux avoid third-party packagesAudio and gamepads; build
Stutter on the LANWi-Fi on the host is harder to diagnose, and software encoding loads the CPUWire the host and confirm a hardware encoder; try Fast Sync or Enhanced SyncMinimums; bitrate
Works at home, fails awayStreaming ports not forwarded, or no public IP addressForward the streaming ports, or use a VPN or outbound tunnelRemote route
Resolution lower than expectedThe resolution set in Moonlight (new v6.2.0 installs default to 1080p instead of 720p)Raise the resolution in Moonlight, then check the bitrateFirst run; bitrate
Smooth on the LAN, choppy over the internetHost upload cannot carry the bitrate (our reading, not a measurement)Pick a lower row from the data-per-hour table, and read the Ctrl+Alt+Shift+S stats overlayBitrate; remote route

For any setting that differs between releases, the documentation for the version you installed is the authority.

Sofia Lindström

Sofia Lindström

Security and privacy

Sofia Lindström writes about security and privacy for Tech Insider: software vulnerabilities and the updates that fix them, data breaches, privacy rules and how products handle personal data. She works from vendor advisories, official vulnerability catalogues and the documents behind each story.

View all articles