# Configuration

Sunshine Name
The name displayed by Moonlight. If not specified, the PC's hostname is used
Log Level
The minimum log level printed to standard out
Origin Web UI Allowed
The origin of the remote endpoint address that is not denied access to Web UI
UPnP
Automatically configure port forwarding
Gamepads
Choose which type of gamepad to Emulate on the host
Ping Timeout
How long to wait in milliseconds for data from moonlight before shutting down the stream
Advertised Resolutions and FPS
Resolutions
{{r}} ×
FPS
{{f}} ×
The display modes advertised by Sunshine
Some versions of Moonlight, such as Moonlight-nx (Switch), rely on this list to ensure that the requested resolutions and fps are supported.
This setting does not change how the screen stream is sent to Moonlight
Map Right Alt key to Windows key
It may be possible that you cannot send the Windows Key from Moonlight directly.
In those cases it may be useful to make Sunshine think the Right Alt key is the Windows key
Private Key
The private key must be 2048 bits
Cert
The certificate must be signed with a 2048 bit key
State File
The file where current state of Sunshine is stored
Apps File
The file where current apps of Sunshine are stored
Back Button Timeout
The back/select button on the controller.
On the Shield, the home and power button are not passed to Moonlight.
If, after the timeout, the back button is still pressed down, Home/Guide button press is emulated.
If back_button_timeout < 0, then the Home/Guide button will not be emulated
Key Repeat Delay
Control how fast keys will repeat themselves
The initial delay in milliseconds before repeating keys
Key Repeat Frequency
How often keys repeat every second
This configurable option supports decimals
Audio Sink
The name of the audio sink used for Audio Loopback
You can find the name of the audio sink using the following command:

    tools\audio-info.exe

Audio Sink
The name of the audio sink used for Audio Loopback
If you do not specify this variable, pulseaudio will select the default monitor device.
You can find the name of the audio sink using either command:

    pacmd list-sinks | grep "name:"

    pactl info | grep Source

Virtual Sink
The virtual sink, is the audio device that's virtual (Like Steam Streaming Speakers), it allows Sunshine to stream audio, while muting the speakers.
Adapter Name
You can select the video card you want to stream:
The appropriate values can be found using the following command:

    tools\dxgi-info.exe

Output Name
You can select the video card you want to stream:
The appropriate values can be found using the following command:
tools\dxgi-info.exe
Monitor number
xrandr --listmonitors
Example output:

       0: +HDMI-1 1920/518x1200/324+0+0 HDMI-1

Port
Set the family of ports used by Sunshine
Quantitization Parameter
Quantitization Parameter
Some devices may not support Constant Bit Rate.
For those devices, QP is used instead.
Higher value means more compression, but less quality
Minimum number of threads used by ffmpeg to encode the video.
Minimum number of threads used by ffmpeg to encode the video.
Increasing the value slightly reduces encoding efficiency, but the tradeoff is usually
worth it to gain the use of more CPU cores for encoding. The ideal value is the lowest
value that can reliably encode at your desired streaming settings on your hardware.
HEVC Support
Allows the client to request HEVC Main or HEVC Main10 video streams.
HEVC is more CPU-intensive to encode, so enabling this may reduce performance when using software encoding.
Force a Specific Encoder
Force a specific encoder, otherwise Sunshine will use the first encoder that is available
FEC Percentage
Percentage of error correcting packets per data packet in each video frame.
Higher values can correct for more network packet loss, but at the cost of increasing bandwidth usage.
The default value of 20 is what GeForce Experience uses.
Channels
When multicasting, it could be useful to have different configurations for each connected Client. For example:

- Clients connected through WAN and LAN have different bitrate constraints.
- Decoders may require different settings for color

Unlike simply broadcasting to multiple Client, this will generate distinct video streams.
Note, CPU usage increases for each distinct video stream generated
Web Manager Credentials File
Store Username/Password separately from Sunshine's state file.
Origin PIN Allowed
The origin of the remote endpoint address that is not denied for HTTP method /pin
External IP
If no external IP address is given, Sunshine will automatically detect external IP
SW Presets
Available Values: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow
SW Tune
Available Tune settings:
film - use for high quality movie content; lowers deblocking
animation - good for cartoons; uses higher deblocking and more reference frames
grain - preserves the grain structure in old, grainy film material
stillimage - good for slideshow-like content
fastdecode - allows faster decoding by disabling certain filters
zerolatency - good for fast encoding and low-latency streaming
NVEnc Preset
NVEnc Rate Control
NVEnc Coder
AMD AMF Quality
AMD AMF Rate Control
AMD AMF Rate Control
Success! Restart Sunshine to apply changes