LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
20.01k stars 963 forks source link

Failed to start RTSP handshake error message on Windows 10 host computer #811

Closed dnet890 closed 1 year ago

dnet890 commented 1 year ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the nightly release?

Describe the Bug

the command log looks good. But, I cannot connect to Windows 10 host computer with Android,iOS and another windows 10 PC with Moonlight app.

Expected Behavior

it should connect

Additional Context

Screenshot_20230122-220154 Screenshot_20230122-220142 This one is for Android

signal-2023-01-22-215242_002 the third one is different windows PC.

signal-2023-01-22-220938_002

the last one is iOS

BTW, I already disabled windows firewall and allow exceptions. But, it does not worked.

Host Operating System

Windows

Operating System Version

Windows 10 22h2

Architecture

64 bit

Sunshine commit or version

0.17

Package

Windows - installer

GPU Type

Nvidia

GPU Model

RTX 3070

GPU Driver/Mesa Version

526.47

Capture Method (Linux Only)

No response

Relevant log output

[2023:01:22:21:57:05]: Info: Compiling shaders...
[2023:01:22:21:57:05]: Info: Compiled shaders
[2023:01:22:21:57:05]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:01:22:21:57:05]: Info: Trying encoder [nvenc]
[2023:01:22:21:57:05]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:05]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:05]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:05]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:05]: Info: Color range: [JPEG]
[2023:01:22:21:57:05]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:05]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:05]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:05]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:05]: Info: Color range: [JPEG]
[2023:01:22:21:57:05]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:05]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:05]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:05]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:05]: Info: Color range: [JPEG]
[2023:01:22:21:57:05]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:05]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:05]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:05]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:05]: Info: Color range: [JPEG]
[2023:01:22:21:57:05]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:05]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:05]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:05]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:05]: Info: Color range: [JPEG]
[2023:01:22:21:57:06]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:06]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:06]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:06]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:06]: Info: Color coding [Rec. 709]
[2023:01:22:21:57:06]: Info: Color range: [JPEG]
[2023:01:22:21:57:06]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2023:01:22:21:57:06]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:06]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:06]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:06]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:06]: Info: Color coding [Rec. 709]
[2023:01:22:21:57:06]: Info: Color range: [JPEG]
[2023:01:22:21:57:06]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:06]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:06]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:06]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:06]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:06]: Info: Color range: [JPEG]
[2023:01:22:21:57:06]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32446 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 5760x1080
[2023:01:22:21:57:06]: Warning: Failed to set realtime GPU priority. Please run application as administrator for optimal performance.
[2023:01:22:21:57:06]: Info: Desktop resolution [1920x1080]
[2023:01:22:21:57:06]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:01:22:21:57:06]: Info: Color coding [Rec. 601]
[2023:01:22:21:57:06]: Info: Color range: [JPEG]
[2023:01:22:21:57:06]: Warning: nvenc: hevc: replacing nalu prefix data
[2023:01:22:21:57:06]: Info: 
[2023:01:22:21:57:06]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:01:22:21:57:06]: Info: 
[2023:01:22:21:57:06]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:01:22:21:57:06]: Error: register_cb(): The RPC server is unavailable.
[2023:01:22:21:57:06]: Info: Configuration UI available at [https://localhost:47990]
[2023:01:22:21:57:10]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:10]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:11]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:11]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:11]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:13]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:13]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:57:13]: Info: Executing [Desktop]
[2023:01:22:21:57:14]: Error: Couldn't discover any UPNP devices
[2023:01:22:21:59:05]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:59:05]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:59:07]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:59:07]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:59:08]: Info: /CN=NVIDIA GameStream Client -- verified
[2023:01:22:21:59:08]: Info: /CN=NVIDIA GameStream Client -- verified
ReenigneArcher commented 1 year ago

Correct me if I'm wrong, but it looks like you are trying to "resume" an existing session?

dnet890 commented 1 year ago

resume and start session. throw same error message (Failed to start RTSP handshake).

Clovis-krz commented 1 year ago

You should manually open ports on your router

ReenigneArcher commented 1 year ago

You should manually open ports on your router

Not if this issue also occurs on LAN

kitsuniru commented 1 year ago

Same problem here, trying in local network

samusaran commented 1 year ago

It sometimes happens to me too. In my case it was related to the handling of commands.

Basically:

I guess the error is just a false positive because the command closes before stream initialization. The best thing should be detect this issue and just return a more precise error.

Solved by not having playnite start with windows, and by using command instead of detatched command. That way, sunshine is in command of playnite lifetime.

LizardByte-bot commented 1 year ago

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

dnet890 commented 1 year ago

keep it open

LizardByte-bot commented 1 year ago

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

dnet890 commented 1 year ago

keep it open

LizardByte-bot commented 1 year ago

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

dnet890 commented 1 year ago

keep it open