Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Warning: WSASendMsg() failed: 10022

Open yanis8787 opened this issue 1 year ago • 8 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

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

This issue is present in the latest pre-release

Describe the Bug

iOS can connect normally within the local area network (LAN), but when attempting to connect over the internet (using iOS or macOS), the following error occurs. Port forwarding has been correctly configured.

局域网中的 iOS 可以正常连接,但在远程串流中(使用 iOS 或 macOS)尝试连接时会出现以下错误。端口转发已正确配置。

Expected Behavior

No response

Additional Context

NUC11PHi7

Intel® Iris Xe Graphics NVidia RTX 2060

Host Operating System

Windows

Operating System Version

Windows 11 23H2,22631.4037

Architecture

64 bit

Sunshine commit or version

Version v2024.818.234424

Package

Windows - installer

GPU Type

Nvidia

GPU Model

2060

GPU Driver/Mesa Version

32.0.15.6081

Capture Method

None

Config

locale = zh
upnp = enabled
wan_encryption_mode = 0

Apps

{
  "env": {},
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Steam Big Picture",
      "cmd": "steam://open/bigpicture",
      "auto-detach": "true",
      "wait-all": "true",
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

[2024-08-19 12:03:02.513]: Info: nvprefs: No need to modify application profile settings
[2024-08-19 12:03:02.513]: Info: nvprefs: No need to modify global profile settings
[2024-08-19 12:03:02.821]: Info: Changed virtual audio sink format to [S32 48000 2.0]
[2024-08-19 12:03:02.848]: Info: 
Device Description : NVIDIA GeForce RTX 2060
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001F15
Device Video Mem   : 5955 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32615 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024-08-19 12:03:02.848]: Info: Active GPU has HAGS enabled
[2024-08-19 12:03:02.848]: Info: Using realtime GPU priority
[2024-08-19 12:03:02.848]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.625,0.339844]
Green Primary      : [0.280273,0.594727]
Blue Primary       : [0.155273,0.0703125]
White Point        : [0.283203,0.297852]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-08-19 12:03:02.849]: Info: Desktop resolution [1920x1080]
[2024-08-19 12:03:02.849]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-08-19 12:03:02.849]: Info: Display refresh rate [60Hz]
[2024-08-19 12:03:02.849]: Info: Requested frame rate [60fps]
[2024-08-19 12:03:02.850]: Info: Creating encoder [hevc_nvenc]
[2024-08-19 12:03:02.850]: Info: Color coding: SDR (Rec. 601)
[2024-08-19 12:03:02.850]: Info: Color depth: 8-bit
[2024-08-19 12:03:02.850]: Info: Color range: MPEG
[2024-08-19 12:03:02.855]: Info: Audio capture format is [F32 48000 2.0]
[2024-08-19 12:03:02.856]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY
[2024-08-19 12:03:02.871]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-08-19 12:03:02.901]: Info: NvEnc: created encoder HEVC P1 two-pass rfi
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022

yanis8787 avatar Aug 19 '24 04:08 yanis8787

[2024-08-19 12:10:23.324]: Info: Sunshine version: v2024.818.234424 [2024-08-19 12:10:23.486]: Info: nvprefs: No need to modify application profile settings [2024-08-19 12:10:23.486]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile [2024-08-19 12:10:23.532]: Info: Compiling shaders... [2024-08-19 12:10:23.709]: Info: Compiled shaders [2024-08-19 12:10:23.715]: Warning: Gamepad x360 is disabled due to gamepads.vigem-not-available [2024-08-19 12:10:23.715]: Warning: Gamepad ds4 is disabled due to gamepads.vigem-not-available [2024-08-19 12:10:23.715]: Warning: No gamepad input is available [2024-08-19 12:10:23.715]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024-08-19 12:10:23.715]: Info: Trying encoder [nvenc] [2024-08-19 12:10:23.820]: Info: ddprobe.exe [1] [] returned: 0x887A0004 [2024-08-19 12:10:23.984]: Info: ddprobe.exe [2] [] returned: 0x00000000 [2024-08-19 12:10:23.985]: Info: Set GPU preference: 2 [2024-08-19 12:10:24.170]: Info: Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 [2024-08-19 12:10:24.170]: Info: Active GPU has HAGS enabled [2024-08-19 12:10:24.170]: Info: Using realtime GPU priority [2024-08-19 12:10:24.171]: Info: Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:10:24.172]: Info: Desktop resolution [1920x1080] [2024-08-19 12:10:24.172]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:10:24.173]: Info: Display refresh rate [60Hz] [2024-08-19 12:10:24.173]: Info: Requested frame rate [60fps] [2024-08-19 12:10:24.173]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:10:24.173]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.173]: Info: Color depth: 8-bit [2024-08-19 12:10:24.173]: Info: Color range: JPEG [2024-08-19 12:10:24.225]: Info: NvEnc: created encoder H.264 P1 two-pass rfi [2024-08-19 12:10:24.255]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:10:24.255]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.255]: Info: Color depth: 8-bit [2024-08-19 12:10:24.255]: Info: Color range: JPEG [2024-08-19 12:10:24.303]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-08-19 12:10:24.333]: Info: Creating encoder [av1_nvenc] [2024-08-19 12:10:24.333]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.333]: Info: Color depth: 8-bit [2024-08-19 12:10:24.333]: Info: Color range: JPEG [2024-08-19 12:10:24.354]: Error: NvEnc: encoding format is not supported by the gpu [2024-08-19 12:10:24.361]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:10:24.362]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.362]: Info: Color depth: 8-bit [2024-08-19 12:10:24.362]: Info: Color range: JPEG [2024-08-19 12:10:24.420]: Info: NvEnc: created encoder H.264 P1 yuv444 two-pass rfi [2024-08-19 12:10:24.613]: Info: Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 [2024-08-19 12:10:24.614]: Info: Active GPU has HAGS enabled [2024-08-19 12:10:24.614]: Info: Using realtime GPU priority [2024-08-19 12:10:24.614]: Info: Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:10:24.614]: Info: Desktop resolution [1920x1080] [2024-08-19 12:10:24.614]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:10:24.614]: Info: Display refresh rate [60Hz] [2024-08-19 12:10:24.614]: Info: Requested frame rate [60fps] [2024-08-19 12:10:24.615]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:10:24.615]: Info: Color coding: SDR (Rec. 709) [2024-08-19 12:10:24.615]: Info: Color depth: 10-bit [2024-08-19 12:10:24.615]: Info: Color range: JPEG [2024-08-19 12:10:24.787]: Info: NvEnc: created encoder HEVC P1 yuv444 10-bit two-pass rfi [2024-08-19 12:10:24.844]: Info: [2024-08-19 12:10:24.845]: Info: // Ignore any errors mentioned above, they are not relevant. // [2024-08-19 12:10:24.845]: Info: [2024-08-19 12:10:24.845]: Info: Found H.264 encoder: h264_nvenc [nvenc] [2024-08-19 12:10:24.845]: Info: Found HEVC encoder: hevc_nvenc [nvenc] [2024-08-19 12:10:24.869]: Info: Configuration UI available at [https://localhost:47990] [2024-08-19 12:10:25.622]: Info: Registered Sunshine mDNS service [2024-08-19 12:10:33.060]: Error: Unknown status [2024-08-19 12:12:41.241]: Error: Unknown status [2024-08-19 12:14:49.470]: Error: Unknown status [2024-08-19 12:16:41.193]: Info: Encoder reenumeration is required [2024-08-19 12:16:41.193]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024-08-19 12:16:41.193]: Info: Trying encoder [nvenc] [2024-08-19 12:16:41.353]: Info: Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 [2024-08-19 12:16:41.353]: Info: Active GPU has HAGS enabled [2024-08-19 12:16:41.353]: Info: Using realtime GPU priority [2024-08-19 12:16:41.353]: Info: Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:16:41.354]: Info: Desktop resolution [1920x1080] [2024-08-19 12:16:41.354]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:41.354]: Info: Display refresh rate [60Hz] [2024-08-19 12:16:41.354]: Info: Requested frame rate [60fps] [2024-08-19 12:16:41.354]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:16:41.354]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.354]: Info: Color depth: 8-bit [2024-08-19 12:16:41.354]: Info: Color range: JPEG [2024-08-19 12:16:41.402]: Info: NvEnc: created encoder H.264 P1 two-pass rfi [2024-08-19 12:16:41.430]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:16:41.431]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.431]: Info: Color depth: 8-bit [2024-08-19 12:16:41.431]: Info: Color range: JPEG [2024-08-19 12:16:41.485]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-08-19 12:16:41.521]: Info: Creating encoder [av1_nvenc] [2024-08-19 12:16:41.521]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.521]: Info: Color depth: 8-bit [2024-08-19 12:16:41.521]: Info: Color range: JPEG [2024-08-19 12:16:41.543]: Error: NvEnc: encoding format is not supported by the gpu [2024-08-19 12:16:41.551]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:16:41.551]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.551]: Info: Color depth: 8-bit [2024-08-19 12:16:41.551]: Info: Color range: JPEG [2024-08-19 12:16:41.597]: Info: NvEnc: created encoder H.264 P1 yuv444 two-pass rfi [2024-08-19 12:16:41.793]: Info: Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 [2024-08-19 12:16:41.793]: Info: Active GPU has HAGS enabled [2024-08-19 12:16:41.793]: Info: Using realtime GPU priority [2024-08-19 12:16:41.793]: Info: Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:16:41.794]: Info: Desktop resolution [1920x1080] [2024-08-19 12:16:41.794]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:41.794]: Info: Display refresh rate [60Hz] [2024-08-19 12:16:41.794]: Info: Requested frame rate [60fps] [2024-08-19 12:16:41.794]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:16:41.794]: Info: Color coding: SDR (Rec. 709) [2024-08-19 12:16:41.794]: Info: Color depth: 10-bit [2024-08-19 12:16:41.794]: Info: Color range: JPEG [2024-08-19 12:16:41.910]: Info: NvEnc: created encoder HEVC P1 yuv444 10-bit two-pass rfi [2024-08-19 12:16:41.966]: Info: [2024-08-19 12:16:41.966]: Info: // Ignore any errors mentioned above, they are not relevant. // [2024-08-19 12:16:41.966]: Info: [2024-08-19 12:16:41.966]: Info: Found H.264 encoder: h264_nvenc [nvenc] [2024-08-19 12:16:41.966]: Info: Found HEVC encoder: hevc_nvenc [nvenc] [2024-08-19 12:16:41.966]: Info: Executing [Desktop] [2024-08-19 12:16:42.584]: Info: nvprefs: No need to modify application profile settings [2024-08-19 12:16:42.584]: Info: nvprefs: No need to modify global profile settings [2024-08-19 12:16:42.639]: Info: Changed virtual audio sink format to [S32 48000 2.0] [2024-08-19 12:16:42.684]: Info: Audio capture format is [F32 48000 2.0] [2024-08-19 12:16:42.685]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY [2024-08-19 12:16:42.900]: Info: Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 [2024-08-19 12:16:42.900]: Info: Active GPU has HAGS enabled [2024-08-19 12:16:42.900]: Info: Using realtime GPU priority [2024-08-19 12:16:42.900]: Info: Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:16:42.901]: Info: Desktop resolution [1920x1080] [2024-08-19 12:16:42.901]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:42.901]: Info: Display refresh rate [60Hz] [2024-08-19 12:16:42.901]: Info: Requested frame rate [60fps] [2024-08-19 12:16:42.902]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:16:42.902]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:42.902]: Info: Color depth: 8-bit [2024-08-19 12:16:42.902]: Info: Color range: MPEG [2024-08-19 12:16:42.921]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:42.952]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-08-19 12:16:43.148]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.260]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.260]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.260]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022

yanis8787 avatar Aug 19 '24 04:08 yanis8787

Does the latest stable work?

Reference: https://github.com/LizardByte/Sunshine/pull/2890

ReenigneArcher avatar Aug 19 '24 12:08 ReenigneArcher

Sunshine's stable version doesn’t work online but does on LAN. I think it might be a graphics card issue. With integrated graphics, it briefly shows a black screen with the cursor before disconnecting. With NVIDIA, it times out and disconnects. RD Client from Microsoft works fine both online and on LAN.

yanis8787 avatar Aug 19 '24 14:08 yanis8787

same issue.

AYJk avatar Aug 20 '24 02:08 AYJk

same problem

Tenkodo avatar Sep 26 '24 06:09 Tenkodo

请问解决了吗,我也遇见同样的问题

Dalegebai avatar Oct 12 '24 15:10 Dalegebai

@Dalegebai please use English

ReenigneArcher avatar Oct 12 '24 15:10 ReenigneArcher

i have the same issue but the other way round:

I get the error on wireless LAN but not on WAN (over internet).

I also think can narrow it down: its the audio streaming that does something differently wih the network from the video stream.

i tried with the official release and also todays nightly Version v2024.1015.41553. tested on windows host and linux and android client.

Story: I do not want sunshine to stream anything to the internet so i kept all standard settings after install (local network only). Everything worked perfectly since i use sunshine (like 3 months) over local Wifi and today i changed my router to an ASUS router.

setup the same wireless networks with the same passowords.

now i can connect host and client and video also works perfectly BUT: on my local wireless LAN as soon as i play any sound then the client freezes and the sunshine logs on host show at that moment a ton of:

Warning: WSASendMsg() failed: 10022

if i turn off the audio playing on the host quick enough (less than a second) the client reconnnects and continues as long as there is no sound. IF i dont then the client disconnects.

I reconnected my old rounter of another cheaper brand and it works with no issues. i never setup anything special for sunshine there. itworked right out of the box. Reconnected the ASUS router again and its the same issue.

I installed the moonlight internet host tool and it enables sunshine over the internet (didnt chance anything on sunshine.. just installed the tool and thats it). Over internet both audio and video work with no issues (didnt try local). If i de-install it sunshine over internet does not work (as expected) but the issue persists over local wireless: can connect and stream video but as soon as there is sound the client freezes and disconnects.

I read here: https://github.com/LizardByte/Sunshine/issues/2120

that someone fixed it by updating some rules in the firewall but i dont know what he did exactly. also would not want to open any ports and expose my host openly to the the internet just to stream locally.

Edit: i also tested this on linux and it seems linux works..

windows seem to be blocking something on the audio stream.. i deactivated all firewalls i could find (private, public, domain) and the problem remains. I also deleted and re-registered the wireless network on windows.

Still funny that the same windows works with the old router and that the video stream alone works.

edit2: after more digging i reinstalled nvidia shield and paired to shield as host. Shield has audio and no problems on the same windows machine.

also i found a similar issue here: https://www.snbforums.com/threads/asus-rt-ac68u-need-help-opening-lan-ports.54308/

where someon assumed the port was blocked because the wireless network was set as public and windows was blicking traffic. They fixed it by changing the network to private. that didnt help in my case. the network was private already.

could someone looks at this?

loscrossos avatar Oct 15 '24 07:10 loscrossos

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!

LizardByte-bot avatar Mar 25 '25 10:03 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Apr 05 '25 10:04 LizardByte-bot

This problem is still happening in june 2025, anyone has a fix ?

10YAR avatar Jun 17 '25 23:06 10YAR

i "fixed" by switching to the cheap router.

could you post your setup: exsct error deecription (there are dofferent symptoms) OS, router, changes you made that les to this error; so that someone looking at this has more info

loscrossos avatar Jun 18 '25 03:06 loscrossos

Solved – I’m using OpenWrt with Passwall to handle VPN routing. I added all of Sunshine’s ports to both the TCP and UDP “do not proxy” (non-forwarded) port lists, and that fixed the issue! No more WSASendMsg() failed: 10022, and connections are now super fast.

48000, 47984, 47989, 47990, 48010, 47998, 47999

yanis8787 avatar Jun 18 '25 04:06 yanis8787

I ran into this issue too and solved it by setting Sunshine's External IP option to the IP that sunshine should be exposed to (ex. my local IP). Seems like this is an issue between sunshine and VPN conflicts.

This is because reinstalling sunshine bound it to my Tailscale network adapter instead of my router. This means that I could only connect via tailscale and not via anywhere else (such as my LAN network).

kingbri1 avatar Aug 15 '25 15:08 kingbri1

I just added a rule in my vpn to let sunshine connect directly, and it worked.

wduanni avatar Sep 01 '25 02:09 wduanni