Skip to content

Sunshine

Sunshine

Sunshine is an open-source, self-hosted game streaming solution that enables users to stream games from Batocera to devices running Moonlight. It runs in the background and provides low-latency streaming capabilities.

Sunshine is automatically installed and launched in the background when added via Batocera Unofficial Add-Ons (BUA). To install:

  1. Open Batocera Unofficial Add-Ons from the Ports menu.
  2. Browse the available add-ons and locate Sunshine.
  3. Select Install and wait for the installation to complete.
  4. Sunshine will run automatically in the background upon installation.
  1. Open a web browser either via Batocera or on another device.
  2. Navigate to: https://YOUR-BATOCERA-IP:47990
    • Replace YOUR-BATOCERA-IP with the IP address of your Batocera machine. localhost will work if you open the browser on the same machine.
  3. Set up credentials for Sunshine.
  4. Link it with Moonlight by entering the PIN provided during pairing.
  5. Once linked, you can start streaming games from Batocera to Moonlight-supported devices.
  • Security: Configure user authentication and encryption settings.
  • Streaming Quality: Adjust bitrate, resolution, and frame rate for optimal performance.
  • Controller Support: Ensure proper input mapping for remote gameplay.
  • Network Settings: Optimize connectivity for a stable streaming experience.
Issue Solution
Sunshine not running Restart Batocera to ensure the service starts properly.
Cannot access the Sunshine web UI Verify Batocera’s IP address and ensure port 47990 is accessible.
Moonlight not detecting Sunshine Check network settings and restart both devices.
Input lag or streaming issues Reduce streaming quality settings or switch to a wired connection.