Skip to content

[Issue]: No Audio, disconnect when ping timeout. When using cloudflare tunnel #1522

@caoanhhao

Description

@caoanhhao

Describe the bug

i used cloudflare tunnel to connect Sunshine. Moonlight show "Warning: Your active network connection is metered!"
I have 2 problems:

  1. No Audio.
  2. Disconnect when ping timeout.

My network is good, bandwidth is unlimited. I config android
wifi "treat as unmetered" but it isn't work.
Turn off cloudflare tunnel, Streaming is good.

Steps to reproduce

  1. Connect Cloudflare Trust
  2. Open Moonlight and connect
    3.1 Ping timeout and disconnect.
    3.2 No audio when streaming.

Affected games

No

Other Moonlight clients

PC

Moonlight adjusted settings

No

Moonlight adjusted settings (please complete the following information)

  1. Default.
  2. Test all codec settings
    2.1 Prefer AV1: Showing "Warning: No av1 decoder found"
    2.2 Prefer HEVC: No audio
    2.3 Prefer H.264: No audio

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

Android 13

Device model

Samsung tab s7

Server PC OS version

No

Server PC GeForce Experience version

Linux

Server PC Nvidia GPU driver version

Linux DRIVER version : 575.64.05

Server PC antivirus and firewall software

linux ufw

Screenshots

No response

Relevant log output

 sunshine-2025.806.175625
[2025-08-15 18:11:16.364]: Info: Sunshine version: 2025.806.175625 commit: 4503fea7fbc5cc5ae5aa1de10716f54de948af0e
[2025-08-15 18:11:16.364]: Info: Package Publisher: LizardByte
[2025-08-15 18:11:16.364]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-08-15 18:11:16.364]: Info: Get support: https://app.lizardbyte.dev/support

(sunshine-2025.806.175625:28915): Gtk-WARNING **: 18:11:16.375: Failed to parse /home/caoanhhao/.config/gtk-3.0/settings.ini: Key file does not have group “Settings”

(sunshine-2025.806.175625:28915): libayatana-appindicator-WARNING **: 18:11:16.385: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
[2025-08-15 18:11:16.385]: Info: System tray created
[2025-08-15 18:11:16.426]: Error: Failed to create session:
[2025-08-15 18:11:16.426]: Info: Found display [wayland-0]
[2025-08-15 18:11:16.426]: Info: Found interface: zxdg_output_manager_v1(32) version 3
[2025-08-15 18:11:16.426]: Info: Found interface: zwp_linux_dmabuf_v1(58) version 5
[2025-08-15 18:11:16.426]: Info: Found interface: wl_output(66) version 4
[2025-08-15 18:11:16.426]: Info: Found interface: wl_output(67) version 4
[2025-08-15 18:11:16.426]: Warning: Missing Wayland wire for wlr-export-dmabuf
[2025-08-15 18:11:16.426]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:16.426]: Info: /dev/dri/card1 -> i915
[2025-08-15 18:11:16.471]: Info: Found display [wayland-0]
[2025-08-15 18:11:16.471]: Info: Found display [wayland-0]
[2025-08-15 18:11:16.471]: Info: Found interface: zxdg_output_manager_v1(32) version 3
[2025-08-15 18:11:16.471]: Info: Found interface: zwp_linux_dmabuf_v1(58) version 5
[2025-08-15 18:11:16.471]: Info: Found interface: wl_output(66) version 4
[2025-08-15 18:11:16.471]: Info: Found interface: wl_output(67) version 4
[2025-08-15 18:11:16.472]: Info: Resolution: 1920x1080
[2025-08-15 18:11:16.472]: Info: Resolution: 2560x1080
[2025-08-15 18:11:16.472]: Info: Offset: 0x0
[2025-08-15 18:11:16.472]: Info: Logical size: 1536x864
[2025-08-15 18:11:16.472]: Info: Name: HDMI-A-3
[2025-08-15 18:11:16.472]: Info: Found monitor: AOC HDMI-A-3-28E850
[2025-08-15 18:11:16.472]: Info: Offset: 1536x0
[2025-08-15 18:11:16.472]: Info: Logical size: 2560x1080
[2025-08-15 18:11:16.472]: Info: Name: DP-2
[2025-08-15 18:11:16.472]: Info: Found monitor: LG Electronics LG ULTRAGEAR
[2025-08-15 18:11:16.472]: Info: -------- Start of KMS monitor list --------
[2025-08-15 18:11:16.472]: Warning: Mismatch on expected Resolution compared to actual resolution: 0x0 vs 2560x1080
[2025-08-15 18:11:16.472]: Info: Monitor 0 is DP-2: LG Electronics LG ULTRAGEAR
[2025-08-15 18:11:16.472]: Info: --------- End of KMS monitor list ---------
[2025-08-15 18:11:16.612]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-08-15 18:11:16.612]: Info: Trying encoder [nvenc]
[2025-08-15 18:11:16.612]: Info: Screencasting with KMS
[2025-08-15 18:11:16.612]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:16.613]: Info: Found monitor for DRM screencasting
[2025-08-15 18:11:16.613]: Info: Found connector ID [127]
[2025-08-15 18:11:16.613]: Info: Found cursor plane [55]
[2025-08-15 18:11:16.613]: Info: Creating encoder [h264_nvenc]
[2025-08-15 18:11:16.613]: Info: Color coding: SDR (Rec. 601)
[2025-08-15 18:11:16.613]: Info: Color depth: 8-bit
[2025-08-15 18:11:16.613]: Info: Color range: JPEG
[2025-08-15 18:11:16.747]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:17.010]: Info: Creating encoder [hevc_nvenc]
[2025-08-15 18:11:17.010]: Info: Color coding: SDR (Rec. 601)
[2025-08-15 18:11:17.010]: Info: Color depth: 8-bit
[2025-08-15 18:11:17.010]: Info: Color range: JPEG
[2025-08-15 18:11:17.012]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:17.273]: Info: Creating encoder [av1_nvenc]
[2025-08-15 18:11:17.273]: Info: Color coding: SDR (Rec. 601)
[2025-08-15 18:11:17.273]: Info: Color depth: 8-bit
[2025-08-15 18:11:17.273]: Info: Color range: JPEG
[2025-08-15 18:11:17.275]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:17.537]: Info: Screencasting with KMS
[2025-08-15 18:11:17.537]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:17.537]: Info: Found monitor for DRM screencasting
[2025-08-15 18:11:17.537]: Info: Found connector ID [127]
[2025-08-15 18:11:17.537]: Info: Found cursor plane [55]
[2025-08-15 18:11:17.537]: Info: Creating encoder [hevc_nvenc]
[2025-08-15 18:11:17.537]: Info: Color coding: SDR (Rec. 709)
[2025-08-15 18:11:17.537]: Info: Color depth: 10-bit
[2025-08-15 18:11:17.537]: Info: Color range: JPEG
[2025-08-15 18:11:17.538]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:17.799]: Info: Creating encoder [av1_nvenc]
[2025-08-15 18:11:17.800]: Info: Color coding: SDR (Rec. 709)
[2025-08-15 18:11:17.800]: Info: Color depth: 10-bit
[2025-08-15 18:11:17.800]: Info: Color range: JPEG
[2025-08-15 18:11:17.801]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:18.062]: Info:
[2025-08-15 18:11:18.062]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-08-15 18:11:18.062]: Info:
[2025-08-15 18:11:18.062]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-08-15 18:11:18.062]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-08-15 18:11:18.062]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025-08-15 18:11:18.064]: Info: Adding avahi service zZHaOZz-Arch
[2025-08-15 18:11:18.064]: Info: Configuration UI available at [https://localhost:47990]
[2025-08-15 18:11:18.840]: Info: Avahi service zZHaOZz-Arch successfully established.
[2025-08-15 18:11:26.735]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-08-15 18:11:26.735]: Info: Trying encoder [nvenc]
[2025-08-15 18:11:26.735]: Info: Screencasting with KMS
[2025-08-15 18:11:26.735]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:26.736]: Info: Found monitor for DRM screencasting
[2025-08-15 18:11:26.736]: Info: Found connector ID [127]
[2025-08-15 18:11:26.736]: Info: Found cursor plane [55]
[2025-08-15 18:11:26.736]: Info: Creating encoder [h264_nvenc]
[2025-08-15 18:11:26.736]: Info: Color coding: SDR (Rec. 601)
[2025-08-15 18:11:26.736]: Info: Color depth: 8-bit
[2025-08-15 18:11:26.736]: Info: Color range: JPEG
[2025-08-15 18:11:26.762]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:27.024]: Info: Creating encoder [hevc_nvenc]
[2025-08-15 18:11:27.024]: Info: Color coding: SDR (Rec. 601)
[2025-08-15 18:11:27.024]: Info: Color depth: 8-bit
[2025-08-15 18:11:27.024]: Info: Color range: JPEG
[2025-08-15 18:11:27.026]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:27.288]: Info: Creating encoder [av1_nvenc]
[2025-08-15 18:11:27.288]: Info: Color coding: SDR (Rec. 601)
[2025-08-15 18:11:27.288]: Info: Color depth: 8-bit
[2025-08-15 18:11:27.288]: Info: Color range: JPEG
[2025-08-15 18:11:27.290]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:27.552]: Info: Screencasting with KMS
[2025-08-15 18:11:27.552]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:27.552]: Info: Found monitor for DRM screencasting
[2025-08-15 18:11:27.552]: Info: Found connector ID [127]
[2025-08-15 18:11:27.552]: Info: Found cursor plane [55]
[2025-08-15 18:11:27.552]: Info: Creating encoder [hevc_nvenc]
[2025-08-15 18:11:27.552]: Info: Color coding: SDR (Rec. 709)
[2025-08-15 18:11:27.552]: Info: Color depth: 10-bit
[2025-08-15 18:11:27.552]: Info: Color range: JPEG
[2025-08-15 18:11:27.554]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:27.816]: Info: Creating encoder [av1_nvenc]
[2025-08-15 18:11:27.816]: Info: Color coding: SDR (Rec. 709)
[2025-08-15 18:11:27.816]: Info: Color depth: 10-bit
[2025-08-15 18:11:27.816]: Info: Color range: JPEG
[2025-08-15 18:11:27.818]: Info: Streaming bitrate is 1000000
[2025-08-15 18:11:28.080]: Info:
[2025-08-15 18:11:28.080]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-08-15 18:11:28.080]: Info:
[2025-08-15 18:11:28.080]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-08-15 18:11:28.080]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-08-15 18:11:28.080]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025-08-15 18:11:28.080]: Info: Executing [Desktop]
[2025-08-15 18:11:28.896]: Info: New streaming session started [active sessions: 1]
[2025-08-15 18:11:29.231]: Info: CLIENT CONNECTED
[2025-08-15 18:11:29.341]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:29.342]: Info: /dev/dri/card1 -> i915
[2025-08-15 18:11:29.342]: Info: Found display [wayland-0]
[2025-08-15 18:11:29.342]: Info: Found interface: zxdg_output_manager_v1(32) version 3
[2025-08-15 18:11:29.342]: Info: Found interface: zwp_linux_dmabuf_v1(58) version 5
[2025-08-15 18:11:29.342]: Info: Found interface: wl_output(66) version 4
[2025-08-15 18:11:29.342]: Info: Found interface: wl_output(67) version 4
[2025-08-15 18:11:29.344]: Info: Resolution: 1920x1080
[2025-08-15 18:11:29.344]: Info: Resolution: 2560x1080
[2025-08-15 18:11:29.344]: Info: Offset: 0x0
[2025-08-15 18:11:29.344]: Info: Logical size: 1536x864
[2025-08-15 18:11:29.344]: Info: Name: HDMI-A-3
[2025-08-15 18:11:29.344]: Info: Found monitor: AOC HDMI-A-3-28E850
[2025-08-15 18:11:29.344]: Info: Offset: 1536x0
[2025-08-15 18:11:29.344]: Info: Logical size: 2560x1080
[2025-08-15 18:11:29.344]: Info: Name: DP-2
[2025-08-15 18:11:29.344]: Info: Found monitor: LG Electronics LG ULTRAGEAR
[2025-08-15 18:11:29.344]: Info: -------- Start of KMS monitor list --------
[2025-08-15 18:11:29.344]: Warning: Mismatch on expected Resolution compared to actual resolution: 0x0 vs 2560x1080
[2025-08-15 18:11:29.344]: Info: Monitor 0 is DP-2: LG Electronics LG ULTRAGEAR
[2025-08-15 18:11:29.344]: Info: --------- End of KMS monitor list ---------
[2025-08-15 18:11:29.344]: Info: Screencasting with KMS
[2025-08-15 18:11:29.344]: Info: /dev/dri/card2 -> nvidia-drm
[2025-08-15 18:11:29.345]: Info: Found monitor for DRM screencasting
[2025-08-15 18:11:29.345]: Info: Found connector ID [127]
[2025-08-15 18:11:29.345]: Info: Found cursor plane [55]
[2025-08-15 18:11:29.345]: Info: Creating encoder [h264_nvenc]
[2025-08-15 18:11:29.345]: Info: Color coding: SDR (Rec. 709)
[2025-08-15 18:11:29.345]: Info: Color depth: 8-bit
[2025-08-15 18:11:29.345]: Info: Color range: MPEG
[2025-08-15 18:11:29.376]: Info: Streaming bitrate is 30988000
[2025-08-15 18:11:29.393]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2025-08-15 18:11:38.897]: Error: Initial Ping Timeout

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions