Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moonlight Disconnecting from Sunshine Server on LAN from PC & Android Clients #3723

Open
2 tasks done
GhostPratt opened this issue Mar 15, 2025 · 0 comments
Open
2 tasks done

Comments

@GhostPratt
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

After connecting to the server within a few seconds the connection will terminate stating:
Connection Terminated
The Connection was terminated.
Error Code: -1
On the moonlight client.

From Sunshine logs the only error is this:
[2025-03-15 14:51:56.038]: Error: Initial Ping Timeout

Expected Behavior

Client stays connected and your able to use the service.

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 11 & Android

Architecture

amd64/x86_64

Sunshine commit or version

v2025.122.141614

Package

Windows - installer (recommended)

GPU Type

NVIDIA

GPU Model

Geforce RTX 3060 Ti

GPU Driver/Mesa Version

572.42

Capture Method

None

Config

global_prep_cmd = [{"do":"powershell.exe -executionpolicy bypass -file \"Q:\\Emulators\\Sunshine\\ResolutionAutomation\\StreamMonitor.ps1\" -n ResolutionMatcher","elevated":"false","undo":"powershell.exe -executionpolicy bypass -file \"Q:\\Emulators\\Sunshine\\ResolutionAutomation\\UndoScript.ps1\" -n ResolutionMatcher"}]
gamepad = ds4

Apps

{
    "env": {
        "PATH": "$(PATH);$(ProgramFiles(x86))\\Steam"
    },
    "apps": [
        {
            "name": "Desktop",
            "image-path": "desktop.png"
        },
        {
            "name": "Steam Big Picture",
            "detached": [
                "steam steam:\/\/open\/bigpicture"
            ],
            "image-path": "steam.png"
        },
        {
            "name": "Pokemmo",
            "output": "",
            "cmd": "C:\\Users\\phill\\AppData\\Local\\Programs\\PokeMMO\\PokeMMO.exe",
            "exclude-global-prep-cmd": "false",
            "elevated": "false",
            "auto-detach": "true",
            "wait-all": "true",
            "exit-timeout": "5",
            "image-path": "C:\\Program Files\\Sunshine\\config\/covers\/igdb_127976.png"
        },
        {
            "name": "Launchbox",
            "output": "",
            "cmd": "Q:\\LaunchBox\\Core\\LaunchBox.exe",
            "exclude-global-prep-cmd": "false",
            "elevated": "false",
            "auto-detach": "true",
            "wait-all": "true",
            "exit-timeout": "5",
            "image-path": "C:\\Users\\phill\\Pictures\\Logo200x200.png.cda8ac4cecefb0de2e39bc3f9bae979f.png"
        },
        {
            "name": "BigBox",
            "output": "",
            "cmd": "Q:\\LaunchBox\\Core\\BigBox.exe",
            "exclude-global-prep-cmd": "false",
            "elevated": "false",
            "auto-detach": "true",
            "wait-all": "true",
            "exit-timeout": "5",
            "image-path": "C:\\Users\\phill\\Pictures\\bigbox.png"
        },
        {
            "name": "World of Warcraft",
            "output": "",
            "cmd": "Q:\\WOW\\ChromieCraft_3.3.5a\\Wow.exe",
            "exclude-global-prep-cmd": "false",
            "elevated": "false",
            "auto-detach": "true",
            "wait-all": "true",
            "exit-timeout": "5",
            "image-path": "C:\\Program Files\\Sunshine\\config\/covers\/igdb_228.png"
        }
    ]
}

Relevant log output

[2025-03-15 14:54:13.168]: Info: New streaming session started [active sessions: 1]
[2025-03-15 14:54:13.301]: Info: nvprefs: No need to modify application profile settings
[2025-03-15 14:54:13.301]: Info: nvprefs: No need to modify global profile settings
[2025-03-15 14:54:13.372]: Info: CLIENT CONNECTED
[2025-03-15 14:54:13.604]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002489
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16275 MiB
Feature Level      : 0x0000B100
Capture size       : 1280x720
Offset             : 0x0
Virtual Desktop    : 1280x720
[2025-03-15 14:54:13.605]: Info: Active GPU has HAGS enabled
[2025-03-15 14:54:13.605]: Info: Using realtime GPU priority
[2025-03-15 14:54:13.605]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.648438,0.335938]
Green Primary      : [0.310547,0.623047]
Blue Primary       : [0.15332,0.0693359]
White Point        : [0.307617,0.329102]
Min Luminance      : 0.01 nits
Max Luminance      : 1499 nits
Max Full Luminance : 799 nits
[2025-03-15 14:54:13.605]: Info: Desktop resolution [1280x720]
[2025-03-15 14:54:13.605]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-03-15 14:54:13.605]: Info: Display refresh rate [59.973Hz]
[2025-03-15 14:54:13.605]: Info: Requested frame rate [60fps]
[2025-03-15 14:54:13.605]: Info: Adjusted capture rate to 59.973fps to better match display
[2025-03-15 14:54:13.605]: Info: Creating encoder [hevc_nvenc]
[2025-03-15 14:54:13.605]: Info: Color coding: SDR (Rec. 709)
[2025-03-15 14:54:13.605]: Info: Color depth: 8-bit
[2025-03-15 14:54:13.605]: Info: Color range: MPEG
[2025-03-15 14:54:13.624]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-03-15 14:54:13.641]: Info: NvEnc: created encoder HEVC P1 two-pass rfi
[2025-03-15 14:54:23.177]: Error: Initial Ping Timeout
[2025-03-15 14:55:22.774]: Info: Executing Undo Cmd: [powershell.exe -executionpolicy bypass -file "Q:\Emulators\Sunshine\ResolutionAutomation\UndoScript.ps1" -n ResolutionMatcher]
[2025-03-15 14:55:22.776]: Info: powershell.exe -executionpolicy bypass -file "Q:\Emulators\Sunshine\ResolutionAutomation\UndoScript.ps1" -n ResolutionMatcher running with PID 20184
[2025-03-15 14:55:26.021]: Info: Trying to revert applied display device settings. API is available: true
[2025-03-15 14:55:26.022]: Info: Trying to change back the display modes to:
{
  "{aaa25aca-86a2-5dce-bc83-c953dbf93035}": {
    "refresh_rate": {
      "denominator": 1000,
      "numerator": 164999
    },
    "resolution": {
      "height": 1440,
      "width": 3440
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant