Learning how to install Sunshine on PC is a straightforward process that unlocks powerful game streaming from your own computer. Installing Sunshine on your PC creates a host for game streaming, allowing you to play your library on other devices in your home. This guide provides a complete, step-by-step walkthrough to get you up and running.
Sunshine is an open-source alternative to NVIDIA’s GameStream. It works with AMD, Intel, and NVIDIA GPUs. Once installed, you can stream games from your powerful desktop to a laptop, TV, or even a handheld device like a Steam Deck using the Moonlight client.
The setup involves a few key steps: checking your system, downloading the software, running the installer, and configuring the settings. We will cover each part in detail, including troubleshooting common issues. Let’s get your personal streaming server ready.
How To Install Sunshine On Pc
This section covers the core installation process. We’ll start with the prerequisites your system needs to run Sunshine effectively. Ensuring your PC meets these requirements will prevent most common problems right from the start.
System Requirements And Prerequisites
Before you download any files, verify that your computer is compatible. Sunshine is not overly demanding, but having the right hardware and software ensures a smooth streaming experience.
Hardware Compatibility
Sunshine supports a wide range of modern graphics hardware. Your primary consideration is your GPU.
- NVIDIA GPU: GTX 600 series or newer (Kepler architecture and above). Drivers should be up to date.
- AMD GPU: GCN architecture or newer (roughly Radeon HD 7000 series and above). Recent drivers are recommended.
- Intel GPU: 6th Gen Skylake or newer integrated graphics. Arc GPUs are fully supported.
- CPU: A modern multi-core processor is needed for encoding. Any Intel Core i5/Ryzen 5 or better from the last 5-7 years is sufficient.
- RAM: At least 4GB of system memory, though 8GB or more is ideal for gaming.
- Network: A wired Ethernet connection (gigabit recommended) is best for the host PC. For wireless, a strong Wi-Fi 5 or Wi-Fi 6 connection is required on the client device.
Software Prerequisites
Your operating system and drivers form the foundation. Outdated software is a frequent cause of failure.
- Operating System: Windows 10 (64-bit) or Windows 11. Some Linux distributions are also supported, but this guide focuses on Windows.
- Graphics Drivers: Install the latest drivers directly from NVIDIA, AMD, or Intel. Do not rely on Windows Update for these.
- Visual C++ Redistributables: Sunshine’s installer typically includes these, but it’s good to have them installed. You can download the latest package from Microsoft’s official website.
- Administrator Rights: You will need administrator privileges on your PC to install Sunshine.
Downloading The Sunshine Installer
The safest source for the Sunshine installer is the official GitHub repository. Avoid downloading from unofficial third-party sites to prevent security risks.
- Open your web browser and navigate to the Sunshine GitHub releases page.
- Look for the latest stable release. It will be labeled with a version number like “v0.21.0”.
- In the “Assets” section, find the Windows installer file. It will usually be named something like `sunshine-windows-installer.exe`.
- Click the file to download it. Save it to an easy-to-find location, such as your Downloads folder or your desktop.
Before running the installer, it’s a good practice to temporarily disable any real-time antivirus protection. Sometimes security software can interfere with the installation of open-source tools. You can re-enable it immediately after setup is complete.
Running The Installation Wizard
The installation process uses a standard Windows wizard. Follow these steps carefully.
- Locate the downloaded `sunshine-windows-installer.exe` file.
- Right-click the file and select “Run as administrator”. This is crucial for proper installation.
- If a User Account Control (UAC) prompt appears, click “Yes” to allow the app to make changes to your device.
- The installation wizard will launch. The first screen is usually a welcome message. Click “Next” to proceed.
- You will be presented with the End-User License Agreement (EULA). Read it and accept the terms to continue.
- Choose the installation directory. The default location is typically fine for most users. Click “Next”.
- You may see an option to create a desktop shortcut. Leave this checked for easy access.
- Click “Install” to begin the installation. A progress bar will show the files being copied.
- Once the installation is finished, you will see a completion screen. Ensure the option to “Launch Sunshine” is checked and click “Finish”.
Sunshine should now start minimized in your system tray (the area near the clock). Look for a small yellow sun icon. If you don’t see it, you can launch Sunshine from the Start Menu or the desktop shortcut.
Initial Configuration And Setup
After installation, the first launch involves key configuration steps. This is done through a web interface, not a traditional application window.
Accessing The Web Interface
Sunshine is configured via a local webpage on your PC.
- Ensure Sunshine is running (check for the system tray icon).
- Open a web browser on the same PC. Chrome, Firefox, or Edge will all work.
- In the address bar, type: `https://localhost:47990` and press Enter.
- Your browser will show a security warning because Sunshine uses a self-signed certificate. This is normal. You must proceed past this warning.
- In Chrome/Edge, click “Advanced” and then “Proceed to localhost (unsafe)”.
- In Firefox, click “Advanced…” and then “Accept the Risk and Continue”.
- You will be greeted by the Sunshine login page. The default username is `sunshine` and the default password is also `sunshine`. Enter these and log in.
Setting A New Password
Your first task is to change the default password for security.
- Once logged into the Sunshine web interface, click on the “Configuration” tab at the top.
- In the left sidebar, navigate to the “General” section.
- Find the “Username and Password” fields.
- Change the password to something strong and unique. Write it down in a secure place.
- Scroll to the bottom of the page and click “Submit” to save your changes.
- The page will refresh, and you will be logged out. Log back in with the username `sunshine` and your new password.
Basic Configuration Settings
With a secure password set, you can adjust the core streaming settings.
- Framerate: Set to 60 FPS or 120 FPS based on your display and network capability.
- Bitrate: A good starting point is 20-50 Mbps for 1080p streaming. For 4K, you may need 50-150 Mbps. Adjust based on your network performance.
- Encoder: Sunshine will auto-detect the best encoder (NVENC for NVIDIA, AMF for AMD, QSV for Intel). You can usually leave this on “Automatic”.
- Resolution: Set this to your host PC’s primary monitor resolution for the best quality.
- Remember to click “Submit” after making any changes.
Pairing With Moonlight Client
Sunshine works as the server, and Moonlight is the client you use on other devices to connect. You need to pair them.
- On your client device (phone, laptop, TV, etc.), install the Moonlight app. It’s available on iOS, Android, PC, Mac, and many TV platforms.
- Ensure both your host PC and client device are on the same local network.
- Open Moonlight on the client device. It should automatically discover your PC named “Sunshine”.
- Select your PC. Moonlight will display a 4-digit PIN on the screen.
- On your host PC, go back to the Sunshine web interface (`https://localhost:47990`).
- Navigate to the “PIN” section (usually under Configuration or on the main page).
- Enter the 4-digit PIN from your client device and click “Submit”.
- The client device should now be paired. You will see your host PC’s screen or a list of applications in the Moonlight app.
You can now start streaming your desktop or added games directly from the Moonlight client. The connection is secure and low-latency when on a good network.
Adding Games And Applications
By default, Sunshine may only show your desktop. To stream individual games, you need to add them to Sunshine’s application list.
- In the Sunshine web interface, go to the “Applications” tab.
- Click “Add New Application”.
- Fill in the details:
- Name: The title of the game (e.g., “Cyberpunk 2077”).
- Image Path: (Optional) You can add a box art image later.
- Command: This is the most important field. You need the full file path to the game’s executable (.exe) file. The easiest way is to browse for it using the “Browse” button next to the field.
- After browsing and selecting the .exe file, the “Working Directory” and “Detached Commands” fields will often fill automatically. This is fine.
- Click “Add” to save the application.
- The game will now appear in the list on the Applications tab and, more importantly, in your Moonlight client when you connect.
You can repeat this process for all your favorite games and even non-game applications like Photoshop or a media player.
Troubleshooting Common Issues
If you encounter problems, here are solutions to the most frequent issues.
Sunshine Won’t Start Or Crashes
- Re-run the installer as Administrator and choose “Repair” if available.
- Install the latest Visual C++ Redistributable from Microsoft.
- Update your GPU drivers to the very latest version from the manufacturer’s site.
- Check the Windows Event Viewer for specific error logs related to Sunshine.
Moonlight Can’t Find The PC
- Confirm Sunshine is running (system tray icon is present).
- Ensure both devices are on the same network subnet (e.g., both on 192.168.1.x).
- Temporarily disable the Windows Defender Firewall and any third-party firewall/antivirus to test. If it works, create an inbound rule for Sunshine (ports 47984, 47989, 48010).
- Try entering your PC’s local IP address manually in the Moonlight client instead of relying on auto-discovery.
Poor Stream Quality Or High Latency
- Connect your host PC via Ethernet cable. Wi-Fi is often the bottleneck.
- Lower the bitrate setting in Sunshine’s configuration. Start at 20 Mbps and increase gradually.
- On the client device, ensure you are on a strong 5GHz Wi-Fi network if not using Ethernet.
- In Sunshine’s configuration, try switching the encoder. For example, if on “Automatic”, try forcing “NVENC” (for NVIDIA) specifically.
Audio Not Working On Client
Sunshine streams audio by default. If you have no sound:
- In the Sunshine web interface, go to Configuration > Audio.
- Verify the correct output device is selected (likely your default Windows playback device).
- On the client device (Moonlight), check the app’s audio settings to ensure volume is up and the correct output is selected.
- Restart the Sunshine service from the system tray icon after making audio changes.
Advanced Configuration Tips
Once the basics are working, these tweaks can enhance your experience.
Setting Up Wake-On-LAN
You can configure Sunshine and your network to wake your host PC from sleep remotely.
- Enable Wake-on-LAN in your PC’s BIOS/UEFI settings.
- In Windows Device Manager, find your network adapter, go to Properties > Power Management, and check “Allow this device to wake the computer”.
- In Sunshine’s web interface, under Configuration > General, find the Wake-on-LAN settings. Enter your PC’s MAC address and broadcast IP.
Using Sunshine With Multiple Monitors
Streaming with multiple monitors can sometimes cause confusion for the streaming software.
- In Sunshine’s configuration, under the “Video” section, you can specify which display to capture. Set it to your primary gaming monitor.
- For the simplest experience, consider disabling or turning off secondary monitors before starting a streaming session through Moonlight.
Automating Sunshine Startup
To ensure Sunshine always runs when you start your PC:
- Press `Win + R`, type `shell:startup`, and press Enter. This opens the Startup folder.
- Create a shortcut in this folder pointing to the Sunshine executable. The default path is `C:\Program Files\Sunshine\sunshine.exe`.
- For the shortcut to run with admin privileges, right-click the shortcut, select Properties > Shortcut > Advanced, and check “Run as administrator”.
Frequently Asked Questions
Is Sunshine Safe To Use?
Yes, Sunshine is safe. It is open-source software, meaning its code is publicly available for review by security experts. You should always download it from the official GitHub repository to avoid modified, malicious versions.
Can I Use Sunshine For Remote Play Over The Internet?
Yes, but it requires more advanced network setup. You need to configure port forwarding on your router for ports 47984, 47989, and 48010 to point to your host PC’s local IP address. For security, consider using a VPN like WireGuard or Tailscale instead of open port forwarding.
Does Sunshine Work With All Games?
Sunshine works with the vast majority of games. Since it captures your desktop or specific applications, compatibility is very high. Some anti-cheat protected games may block streaming, but this is rare for single-player titles. Performance can vary with very old or unusual exclusive fullscreen applications.
What Is The Difference Between Sunshine And Steam Link?
Steam Link is a closed ecosystem primarily for streaming games from your Steam library. Sunshine is an open-source, hardware-agnostic server that works with any game or application on your PC and pairs with the Moonlight client, which is known for its very low latency and high image quality.
How Do I Update Sunshine To A Newer Version?
The easiest method is to download the latest installer from GitHub and run it over your existing installation. The installer will typically upgrade Sunshine in place while preserving your configuration. It’s a good practice to note your settings before an update, just in case.
Following this guide, you should have a fully functional Sunshine streaming host on your PC. The process from download to first stream can be completed in under 30 minutes. The key to a great experience is a stable wired network for your host and proper configuration of the bitrate and resolution settings. With everything setup, you can enjoy your PC games from any screen in your house without moving your desktop.