selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Sunshine logo

Self-host Sunshine

v2026.914.233613

Low-latency game stream host for Moonlight clients

ReleaseOpen SourceGPL-3.0
sudo apt install sunshine
Updatedlast month
LanguageC++
Setup difficultyEasy
Stars
43 139
CPU
AMD: Ryzen 3 or higher; Intel: Core i3 or higher
RAM
4GB or more
Ports
47990 (HTTPS web UI used for configuration and client pairing), 47989 (Default value of the port option; changing it offsets the other streaming ports), 48010 (TCP port required by the documented Docker port mappings)
Docker
lizardbyte/sunshine
Web UI navbar with the theme selection dropdown openApplications page of the web UI where games are addedConfiguration page of the web UI with the option search barFeatured Apps tab listing Moonlight clients and toolsTroubleshooting tab showing the Sunshine log

What is Sunshine?

Sunshine is the host side of Moonlight game streaming: you install it on your own PC and connect to it from Moonlight clients on other devices. It captures the screen or launches games and applications, encodes them with AMD, Intel or Nvidia hardware encoders (NVENC, VAAPI, AMF, QuickSync, Video Toolbox, Vulkan Video) or on the CPU, and delivers the result with low latency. Virtual input is part of the package, so Xbox 360/One/Series, DualShock 4, DualSense and Switch Pro gamepads, along with keyboard and mouse, get emulated on the host machine. An HTTPS web UI opens in your browser for settings, app lists, log viewing and PIN pairing with clients, and a RESTful API exposes the same service for automation. HDR output is official on Windows hosts and experimental on Linux ones. Self-hosting means installing a release package (deb/rpm/APK/AppImage/Flatpak/Homebrew, MSI on Windows, DMG on macOS, pkg on FreeBSD) or one of the published container images; UPnP can open ports for internet streaming. Plan on at least a Ryzen 3 or Core i3, 4 GB of RAM and a 5 GHz 802.11ac network, and note that the first launch asks you to create web UI credentials.

Sunshine alternatives

Should you self-host Sunshine?

Sunshine scores 84/100 on selfhost.directory (how scoring works) and ranks #2 of 22 in Remote Desktop. It has 43 139 GitHub stars, +1 289 in the last 30 days.

It shipped 91 stable releases in the past year. The latest, v2026.1107.185223, came out on 7 November 2026. New versions land roughly every 1 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is GPL-3.0-licensed and written mostly in C++.

Its closest alternative on selfhost.directory is rustdesk (92/100, 128 636 stars). It scores higher overall, so compare the two before you pick. See Sunshine vs rustdesk side by side.

Features

  • Controller emulationOn macOS all profiles need the separately licensed Virtual HID Broker; FreeBSD lacks motion/touchpad/battery/LED features.
  • Desktop streaming
  • Hardware Encoding
  • HDR streamingOfficially supported on Windows hosts, experimentally on Linux hosts.
  • Localizable interface
  • Log viewer in the web UI
  • Low-latency game streaming
  • PIN client pairing
  • REST API
  • Software encoding
  • UPnP port opening for internet streaming
  • Virtual keyboard and mouse input
  • Wayland, X11 and portal screen capture
  • Web UI configuration

Sunshine README

Sunshine icon

Sunshine

Self-hosted game stream host for Moonlight.
Star History Rank GitHub Trending Repository of the Day

GitHub stars

How to install Sunshine

Install Sunshine with Docker

docker run -d \
  --device /dev/dri/ \
  --name=<image_name> \
  --restart=unless-stopped \
  --ipc=host \
  -e PUID=<uid> \
  -e PGID=<gid> \
  -e TZ=<timezone> \
  -v <path to data>:/config \
  -p 47984-47990:47984-47990/tcp \
  -p 48010:48010 \
  -p 47998-48000:47998-48000/udp \
  <image>

Images are published on Docker Hub and GHCR with <SUNSHINE_VERSION>-<SUNSHINE_OS> tags; the docs warn the images are not recommended for most users.

How to configure Sunshine

  • localeLocale used for the user interface; default en.

    values: language codes such as bg, cs, de, en, en_GB, en_US

  • upnpWhether Sunshine tries to open ports via UPnP for streaming over the internet; default disabled, example enabled.

    values: disabled | enabled

  • address_familyAddress family Sunshine uses; default ipv4.

    values: ipv4 (IPv4 only) | both (IPv4+IPv6)

  • bind_addressIP address to bind Sunshine to; empty binds to all interfaces (0.0.0.0 or ::).
  • port47989Base port of the port family Sunshine listens on; changing it offsets the other ports. Range 1029-65514.

    values: 1029-65514

Sunshine releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Remote Desktop

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…