Sunshine + Moonlight Remote Gaming

Stream and play PC games remotely with near-zero latency using Sunshine (host) and Moonlight (client) on Clore.ai's GPU-powered servers.

circle-info

Sunshine is an open-source, self-hosted game streaming server with 20,000+ GitHub stars. Moonlight is the free, open-source client that connects to it. Together they rival GeForce NOW — at a fraction of the cost.


What Is Sunshine + Moonlight?

Sunshine is a fork of the original Moonlight/GameStream stack, now fully independent and actively maintained by LizardByte. It captures your GPU output, encodes it in real-time using H.264/H.265/AV1, and streams it over the network with ultra-low latency.

Moonlight is the client app available for Windows, macOS, Linux, Android, iOS, Raspberry Pi, and even some smart TVs.

Why Use It on Clore.ai?

  • Rent a high-end GPU (RTX 4090, A100, etc.) at spot pricing

  • Stream AAA games from the cloud to any device — even a cheap laptop

  • No GeForce NOW subscription needed — you control the hardware

  • Game modding, AI-assisted gameplay, or game development testing on powerful hardware


Prerequisites

Requirement
Details

Clore.ai account

With sufficient CLORE balance

GPU server

NVIDIA GPU (for NVENC encoding) preferred

Moonlight client

Installed on your local device

SSH access

For initial setup


Step 1: Rent a GPU Server on Clore.ai

  1. Go to clore.aiarrow-up-rightMarketplace

  2. Filter by GPU type: RTX 3080 or better recommended for 1080p/60fps streaming

  3. Look for servers with ports 22, 47990, and 48010 available

  4. Select a server and proceed to order

circle-exclamation
Resolution
Target FPS
Minimum GPU

1080p

60 fps

RTX 3060

1440p

60 fps

RTX 3080

4K

60 fps

RTX 3090 / 4080

1080p

120 fps

RTX 4070+


Step 2: Deploy Sunshine via Docker

Create a file docker-compose.yml:

Start the Container

circle-check

Single Docker Command (Quick Start)


Step 3: Configure Sunshine Web UI

  1. Open your browser and navigate to:

  2. Accept the self-signed certificate warning

  3. Log in with the credentials you set (admin / your_secure_password)

circle-exclamation

Web UI Sections

Section
Purpose

Pin

Pair with Moonlight client

Applications

Define streamable apps/games

Configuration

Encoder, resolution, bitrate settings

Logs

Debug streaming issues


Step 4: Configure Encoding Settings

Navigate to ConfigurationVideo in the web UI:

circle-info

NVENC vs VAAPI: On Clore.ai NVIDIA servers, always use nvenc encoder. It offloads encoding to the GPU hardware, freeing CPU for the game itself.

Bitrate Guide

Quality
Resolution
Bitrate

Good

1080p60

20 Mbps

Great

1080p60

35 Mbps

Excellent

1080p60

50 Mbps

Great

1440p60

50 Mbps

Excellent

4K60

100+ Mbps


Step 5: Add Applications to Stream

In the Sunshine web UI → ApplicationsAdd New:

Example: Desktop Streaming

Example: Steam Game

Example: Custom Game


Step 6: Set Up Virtual Display (Headless Server)

Clore.ai servers are headless (no physical monitor). You need a virtual display:

Or Use a Virtual Framebuffer Script

Make it executable and run:

circle-info

NVIDIA GPU with no display: Add the following to your Sunshine config to use the GPU without a physical display:


Step 7: Connect with Moonlight Client

Install Moonlight

Platform
Download

macOS

Mac App Store or moonlight-stream.org

Linux

flatpak install flathub com.moonlight_stream.Moonlight

Android

Google Play Store

iOS

App Store

Raspberry Pi

apt install moonlight-embedded

Pair Moonlight with Sunshine

  1. Open Moonlight on your local device

  2. Click Add PC and enter your Clore.ai server IP

  3. Moonlight will display a PIN code

  4. Go to Sunshine Web UI → Pin → enter the PIN

  5. Connection established! ✅

Moonlight Settings for Best Experience


Step 8: Port Forwarding Reference

Port
Protocol
Purpose

22

TCP

SSH management

47984

TCP

HTTPS (GameStream compat)

47989

TCP

HTTP (GameStream compat)

47990

TCP

HTTPS Web UI

48010

TCP

RTSP (streaming control)

47998-48000

UDP

Video/Audio streaming

48010

UDP

Video streaming

circle-exclamation

Troubleshooting

Sunshine Won't Start

Black Screen When Streaming

High Latency

  • Switch from Wi-Fi to Ethernet on client side

  • Reduce bitrate in Moonlight settings

  • Use H.265 instead of H.264 (better compression at same quality)

  • Enable Frame Pacing in Sunshine config

NVENC Error: "No encoder found"

Authentication/Pairing Issues


Advanced Configuration

Multi-Monitor Support

Audio Over Network

Install PulseAudio virtual sink:

Game Controller Support

Sunshine supports virtual gamepad emulation. Enable in config:

Wake-on-LAN (for persistent servers)


Cost Optimization

Calculate Your Streaming Cost

Tips to Save Money

  1. Spot instances: Use cheapest available GPU during off-peak hours

  2. Pause when not gaming: Stop the container but keep the volume

  3. Pre-install games: Use a persistent volume so you don't re-download each time

  4. Auto-shutdown: Add a script to stop the server after inactivity


Security Best Practices

triangle-exclamation

SSH Tunnel Method (Most Secure)

Change Default Credentials

Restrict Access by IP

In Sunshine config:


Performance Benchmarks

GPU
Resolution
FPS
Latency
Encoder

RTX 3060

1080p

60

~15ms

NVENC

RTX 3080

1440p

60

~12ms

NVENC

RTX 4080

4K

60

~10ms

NVENC AV1

RTX 4090

4K

120

~8ms

NVENC AV1

Latency measured on 100 Mbps local network connection



Summary

Step
Action

1

Rent GPU server with ports 22, 47990, 48010

2

Deploy lizardbyte/sunshine via Docker

3

Configure via web UI at https://IP:47990

4

Set NVENC encoder, 50 Mbps bitrate

5

Create virtual display (Xvfb)

6

Install Moonlight client locally

7

Pair using PIN code

8

Stream and game! 🎮

With Sunshine + Moonlight on Clore.ai, you get a cloud gaming experience that rivals any commercial service — with full control over your hardware and games. No subscriptions, no restrictions, no limits.


Clore.ai GPU Recommendations

Use Case
Recommended GPU
Est. Cost on Clore.ai

1080p/60fps Streaming

RTX 3090 (24GB)

~$0.12/gpu/hr

4K/High-refresh Streaming

RTX 4090 (24GB)

~$0.70/gpu/hr

AAA Gaming + Streaming

RTX 4090 (24GB)

~$0.70/gpu/hr

💡 All examples in this guide can be deployed on Clore.aiarrow-up-right GPU servers. Browse available GPUs and rent by the hour — no commitments, full root access.

Last updated

Was this helpful?