Self-hosted app·Game servers
Sunshine hosting
on a Panama City VPS.
Sunshine hosting on a Pro VPS in PTY1, Panama City: software encoding, ports, Debian 13 install, Docker caveats and real costs. No GPU, so read this first.
- Docker
- Debian
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port20 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $206.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 6 vCPU, 8 GB RAM
- 320 GB NVMe local storage
- 20 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/06
Short answer.
You can run Sunshine on our Cloud VPS in PTY1, Panama City, and the plan we would start on is Pro: 6 vCPU, 8 GB RAM, 320 GB NVMe and 20 TB of monthly transfer for $22.99. One fact decides everything else on this page: no VPS in our catalogue has a GPU. Sunshine therefore encodes the stream on the CPU, and whatever you stream is drawn without hardware 3D acceleration. That is a workable setup for a remote Linux desktop, 2D and older games, and emulators of 8- and 16-bit consoles. It is the wrong setup for modern 3D titles, and adding vCPUs will not fix that; for a current Steam library you need a GPU machine, which we do not sell.
If that fits, deploy a Pro VPS with Debian 13 and follow the steps below.
02/06
What Sunshine is
and who runs it.
Sunshine is the open-source host side of a Moonlight streaming setup, maintained by LizardByte. It speaks the GameStream protocol NVIDIA built for its Shield devices; NVIDIA removed GameStream from Shield in February 2023, and Sunshine has been the host most Moonlight users run since. It captures a display, encodes it to H.264, HEVC or AV1, sends it to the client over UDP, and creates virtual keyboard, mouse and gamepad devices on the host for the input coming back.
Releases are date-versioned and frequent. The current stable release is v2026.914.233613, published on 15 September 2026, which fixes a high-severity flaw affecting Linux hosts (GHSA-fp6g-27w5-489j); the stable release a week earlier carried five critical advisories. Six of the eight stable releases published between January 2025 and September 2026 shipped security fixes. We do not read that as a reason to avoid Sunshine, but it settles how to run it on a public IP: firewalled, updated from a package repository, and with its web interface closed to the internet. The process injects input into your desktop session, so a compromised Sunshine is remote control of that session.
On a VPS, most people want a Linux desktop they can reach from a laptop or a TV, and choose Moonlight because its stream is tuned for responsiveness where VNC is tuned for saving bandwidth. The others run emulators or light games without leaving a machine on at home.
Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.
03/06
Requirements and sizing.
Sunshine itself is a small process; the load is capture and encoding. Without a GPU the chain is fixed: a virtual X display (Xorg with the dummy video driver), Sunshine's x11 capture, which its documentation calls the slowest and most CPU-intensive method, and the software encoder, which defaults to the x264 superfast preset with zerolatency tuning. The documentation also warns that HEVC and AV1 cost more CPU in software, so you should stop Sunshine advertising them and let Moonlight use H.264.
| Resource | Where it goes | VPS Pro |
|---|---|---|
| CPU | x264 encode, desktop, the application you stream | 6 vCPU |
| RAM | Xorg, Xfce, PipeWire, Sunshine, the application | 8 GB |
| Disk | Sunshine is a few megabytes; the rest is your games or ROMs | 320 GB NVMe |
| Transfer | stream bitrate plus error-correction overhead (see below) | 20 TB/month, 1 Gbps |
We recommend Pro over Standard because four vCPU leaves the encoder little room next to the desktop and the application. Power (12 vCPU, 16 GB, 40 TB, 2 Gbps, $42.99) is the step up for 1440p or a heavier application. If frame drops come from CPU contention, the Iron dedicated server ($64.99, EPYC 4244P, 6 cores/12 threads, 32 GB) gives you cores nobody else shares.
Bandwidth is the easy part. Moonlight sets the bitrate, and Sunshine adds forward error correction at 20 % by default, so a 20 Mbps stream is about 24 Mbps on the wire, or roughly 10.8 GB per hour (theoretical). Pro's 20 TB covers about 1,850 hours of that, and streaming around the clock for a 730-hour month would use about 7.9 TB (both theoretical). VPS traffic is metered against the included transfer, unlike on our dedicated servers, but on Pro the CPU runs out long before the transfer does.
Distance sets a latency floor no encoder can beat. With great-circle distance and light in fibre at about 200,000 km/s, the round trip from PTY1 cannot be shorter than roughly 5 ms to San José, Costa Rica, 8 ms to Bogotá, 19 ms to Miami, 24 ms to Mexico City or Lima, 36 ms to New York and 82 ms to Madrid (theoretical; real routes are longer). From Central America, Colombia and Florida, Panama City is a sensible place for this; from Europe it suits a desktop and little that needs fast reactions.
Sunshine uses a fixed family of ports, offset from the port setting (47989 by default):
| Port | Protocol | Purpose | Expose to |
|---|---|---|---|
| 47984 | TCP | HTTPS, pairing | your IP or VPN only |
| 47989 | TCP | HTTP | your IP or VPN only |
| 47990 | TCP | web UI | localhost only, via SSH tunnel |
| 48010 | TCP and UDP | RTSP | your IP or VPN only |
| 47998–48000 | UDP | video, control, audio | your IP or VPN only |
| 48002 | UDP | microphone (unused) | your IP or VPN only |
04/06
How to deploy it
with us.
Order Pro from the deploy link, and decide before installing how Moonlight will reach the server. The cleaner option is a WireGuard tunnel (our guide to VPN servers), so only SSH and WireGuard face the internet. Sunshine then sees your client on a private address and treats it as LAN, where its own encryption is off by default; WireGuard already encrypts the traffic, so nothing is lost. Without a tunnel, set a default-drop nftables policy and allow the ports above from your home IP only.
LizardByte publishes Debian 13 (trixie) packages and, since September 2026, an apt repository on Cloudsmith, so security releases arrive with apt upgrade. The setup script is piped to a shell; if you dislike that, read it first, or install the .deb from the GitHub release and check its SHA-256 against the release page.
# as root on a fresh Debian 13 VPS
apt update
apt install -y curl xserver-xorg-core xserver-xorg-video-dummy xfce4 dbus-x11 pipewire-pulse wireplumber
curl -1sLf 'https://dl.cloudsmith.io/public/lizardbyte/stable/cfg/setup/bash.deb.sh' | bash
apt install -y sunshine
adduser --disabled-password --gecos '' stream
usermod -aG input stream # virtual keyboard, mouse, gamepads
echo uinput > /etc/modules-load.d/uinput.conf && modprobe uinput
loginctl enable-linger stream # user services run without a loginXorg needs a screen to draw on. Put this in /etc/X11/xorg.conf.d/10-dummy.conf; the modeline is the standard cvt output for 1920×1080 at 60 Hz:
Section "Device"
Identifier "dummy"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "virtual"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
EndSection
Section "Screen"
Identifier "screen"
Device "dummy"
Monitor "virtual"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080_60.00"
EndSubSection
EndSectionRun Xorg on display :0 from a small system unit (ExecStart=/usr/lib/xorg/Xorg :0 -nolisten tcp -noreset vt7). As the stream user, set DISPLAY=:0 in ~/.config/environment.d/display.conf, start Xfce from a user unit, and enable Sunshine with systemctl --user enable --now app-dev.lizardbyte.app.Sunshine (also aliased as sunshine.service). Sunshine creates its own audio sink through PipeWire's PulseAudio layer, so a VPS without a sound card still streams sound. The settings that matter go in ~/.config/sunshine/sunshine.conf:
encoder = software
sw_preset = superfast
sw_tune = zerolatency
capture = x11
hevc_mode = 1 # do not advertise HEVC
av1_mode = 1 # do not advertise AV1
origin_web_ui_allowed = pc # web UI from localhost only
wan_encryption_mode = 2 # without WireGuard: refuse unencrypted streamsReach the web UI with ssh -L 47990:localhost:47990 stream@your-vps and open https://localhost:47990. That route also suits the CSRF protection Sunshine added in May 2026, which trusts localhost origins by default and rejects others unless you list them. Create the admin account, add the server's address in Moonlight, and enter the PIN Moonlight shows on the web UI's PIN page. Start at 1280×720 or 1920×1080, 60 fps and 10–20 Mbps, and raise settings only while the encoder keeps up.
- 01
Sunshine with Docker
LizardByte publishes images on Docker Hub and GHCR (
lizardbyte/sunshine:latest-debian-bookworm,latest-ubuntu-24.04), but its documentation calls them experimental and meant as a base for your own image, not a standalone container. On a GPU-less VPS that matters: the container still needs an X server, a desktop and the application inside it, plus/dev/uinputfrom the host, so you end up rebuilding the native install in a Dockerfile. We recommend the native package. If you want containers anyway, this is the shape, with the web UI bound to localhost:services: sunshine: build: . # FROM lizardbyte/sunshine:latest-debian-bookworm + Xorg dummy, desktop, app container_name: sunshine restart: unless-stopped ipc: host devices: - /dev/uinput environment: - PUID=1001 - PGID=1001 - TZ=America/Panama volumes: - ./config:/config ports: - "47984-47989:47984-47989/tcp" - "127.0.0.1:47990:47990/tcp" - "48010:48010" - "47998-48000:47998-48000/udp"
05/06
Cost.
| Item | Price |
|---|---|
| VPS Pro: 6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB transfer, 1 Gbps | $22.99/month |
| Billed yearly (about −25 %) | about $17.25/month (theoretical) |
| Daily backups (+20 %) | about $4.60/month |
| Extra IPv4 | $2/month |
| VPS Power, if you need 12 vCPU / 16 GB | $42.99/month |
Sunshine and Moonlight cost nothing; the bill is the VPS, as listed on pricing. Payment is in crypto only (AVAX, BCH, BNB, BTC, DOGE, ETH, LTC, SOL, TRX, USDC, USDT and XMR), with balances in US dollars. Top-ups from $50 carry a bonus of 5 % to 20 % depending on the amount, and the unused paid part of a top-up is refundable within 14 days. The account is no-KYC: an email address is enough.
06/06
Limits and acceptable
use.
You are responsible for the software on the server and for what you stream. Keep Sunshine updated, keep the web UI off the public internet, and pair only your own clients; the web UI lets you disable or unpair a client you no longer trust. Game licences are yours to check, since some publishers restrict running their games on rented servers or streaming them to other people. Game images and ROM sets you have no rights to fall under our copyright process: a DMCA notice has no legal effect on servers in Panama. We forward copyright complaints to the customer and act on a decision of a competent Panamanian authority, or where the content is manifestly unlawful. The full rules are in our acceptable use policy, and the legal background is on our offshore hosting page.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProRecommendedProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| TitanDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Titan |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions
people ask first.
Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.
Can I stream Steam or other modern 3D games from a Panama Host VPS?
No. Our VPS plans have no GPU, so a 3D game would be rendered in software, far too slowly to play. Sunshine on our VPS suits a desktop, 2D games and older-console emulation; current 3D games need a GPU host, which is not in our catalogue.
Is the official Docker image the easiest way to self-host Sunshine?
Not on a VPS. LizardByte describes the images as experimental building blocks, and without a GPU you still have to add an X server, a desktop and your application to the image. The native Debian 13 package from LizardByte's apt repository is less work and updates with apt upgrade.
Do I need UPnP or port forwarding?
No. The VPS has a public IPv4 address, and Sunshine's UPnP option is off by default; leave it off. Open only the ports in the table above, preferably through WireGuard, and keep 47990 reachable from localhost only.
Which Moonlight settings suit a CPU-only host?
H.264, 60 fps, 1280×720 or 1920×1080, and 10–20 Mbps. Resolution and frame rate drive encoder load far more than bitrate does, so if encode times climb in Moonlight's statistics overlay, lower the resolution first.
Can I keep my game library in object storage?
As a backup, yes: our object storage is S3-compatible, so rclone or restic can copy your library and Sunshine configuration to a bucket. Keep the files you play on the VPS's NVMe disk; an rclone mount is acceptable only for read-mostly media, never for files a running game writes to.
Does hosting in Panama put the server out of reach of foreign authorities?
Not as a blanket rule. A DMCA notice has no legal effect on servers in Panama, but Panama and the United States are bound by a mutual legal assistance treaty in criminal matters, in force since 6 September 1995, and requests under it are executed by Panamanian authorities.
Sources
Every fact on this page, with its source
Consulted 5 Nov 2026 unless noted.
Industry, providers and software
- LizardByte, Sunshine releases on GitHub — v2026.914.233613 (stable, 15 September 2026, GHSA-fp6g-27w5-489j), v2026.906.222525 (five critical advisories, Cloudsmith repositories), v2026.516.143833 (CSRF protection, client enable/disable), 2025 releasesgithub.com
- Sunshine issue #161, Moonlight's port checks including UDP 48010github.com
Other references
- Sunshine documentation, Getting Started (Cloudsmith apt repository, Docker warning, input group, user service name)docs.lizardbyte.dev
- Sunshine documentation, Configuration (encoder, sw_preset, sw_tune, capture, hevc_mode, av1_mode, origin_web_ui_allowed, csrf_allowed_origins, encryption modes, fec_percentage, upnp)docs.lizardbyte.dev
- Sunshine documentation, Docker (experimental status, image tags, port mappings)docs.lizardbyte.dev
- Sunshine documentation, port table and offsets (v0.18.2)sunshinestream.readthedocs.io
- GamingOnLinux, Sunshine v2025.628.4510 security fixes (July 2025)gamingonlinux.com
- PCWorld, NVIDIA ends GameStream on Shield in February 2023 (19 December 2022)pcworld.com
- US Department of State, Panama mutual legal assistance treaty, in force 6 September 1995state.gov
- Panama Host catalogue (plans, prices, transfer, payment terms) and owner decisions of 1 November 2026Panama Host
- Latency floors and transfer figures: our own calculations from great-circle distance and stated bitrates, labelled theoreticalPanama Host
Your server in Panama,
ready when you are.
Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.