Skip to content

System tray launches Web UI at localhost even if bind_address is configured #5244

@pablojrl123

Description

@pablojrl123

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?

This issue is present in the latest pre-release

Describe the Bug

When the bind_address option is configured, the system tray will still try to open a browser window at https://localhost:47990. However, as expected the broser wont' be able to connect to anything.

Expected Behavior

The system tray should instead construct a URL using the bind_address IP.

Additional Context

This is similar to #4638. The system tray is hardcoded to show "localhost".

std::string url = std::format("https://localhost:{}", static_cast<int>(net::map_port(confighttp::PORT_HTTPS)));

I assume the fix would be similar to 14819d1.

Also, this may be topic for a different issue but it may be helpful to whitelist the bind_address address itself to always have permission to access the Web UI. Otherwise, if you configure a bind_address but set Origin Web UI Allowed to Only Localhost then it locks you out of the Web UI completely since the client address won't be localhost either.

Host Operating System

Linux

Operating System Version

Arch Linux

Architecture

amd64/x86_64

Package

Linux - AUR (Third Party)

GPU Type

NVIDIA

GPU Model

2060

GPU Driver/Mesa Version

610.43.02

Capture Method

KMS (Linux)

Apps

Log output

[2026-06-03 17:49:41.379]: Info: Sunshine version: 2026.516.143833 commit: 14ffa6fdaa53f7b51512be2b3d24f3939695403c
[2026-06-03 17:49:41.380]: Info: Package Publisher: LizardByte
[2026-06-03 17:49:41.380]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-06-03 17:49:41.380]: Info: Get support: https://app.lizardbyte.dev/support
[2026-06-03 17:49:41.380]: Info: config: 'bind_address' = 100.70.253.56
[2026-06-03 17:49:41.380]: Info: config: 'wan_encryption_mode' = 0
[2026-06-03 17:49:41.723]: Info: Found [1] outputs
[2026-06-03 17:49:41.723]: Info: Virtual Desktop: 1920x1080
[2026-06-03 17:49:41.723]: Info: XrandR: available
[2026-06-03 17:49:41.723]: Info: -- Output --
[2026-06-03 17:49:41.723]: Info:   Resolution: 1920x1080
[2026-06-03 17:49:41.723]: Info:   Offset: 0x0
[2026-06-03 17:49:41.761]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:49:41.761]: Info: Detecting displays
[2026-06-03 17:49:41.765]: Info: Detected display: DP-0 (id: 0)DP-0 connected: false
[2026-06-03 17:49:41.765]: Info: Detected display: DP-1 (id: 1)DP-1 connected: false
[2026-06-03 17:49:41.765]: Info: Detected display: eDP-1-0 (id: 2)eDP-1-0 connected: true
[2026-06-03 17:49:41.765]: Info: Detected display: HDMI-A-1-0 (id: 3)HDMI-A-1-0 connected: false
[2026-06-03 17:49:41.866]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-06-03 17:49:41.866]: Info: Trying encoder [nvenc]
[2026-06-03 17:49:41.866]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-06-03 17:49:41.866]: Info: Screencasting with NvFBC
[2026-06-03 17:49:41.993]: Info: Creating encoder [h264_nvenc]
[2026-06-03 17:49:41.993]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:49:41.993]: Info: Color depth: 8-bit
[2026-06-03 17:49:41.993]: Info: Color range: JPEG
[2026-06-03 17:49:42.105]: Info: Streaming bitrate is 1000000
[2026-06-03 17:49:42.155]: Info: Creating encoder [hevc_nvenc]
[2026-06-03 17:49:42.155]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:49:42.155]: Info: Color depth: 8-bit
[2026-06-03 17:49:42.155]: Info: Color range: JPEG
[2026-06-03 17:49:42.155]: Info: Streaming bitrate is 1000000
[2026-06-03 17:49:42.202]: Info: Creating encoder [av1_nvenc]
[2026-06-03 17:49:42.202]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:49:42.202]: Info: Color depth: 8-bit
[2026-06-03 17:49:42.202]: Info: Color range: JPEG
[2026-06-03 17:49:42.202]: Info: Streaming bitrate is 1000000
[2026-06-03 17:49:42.209]: Warning: [av1_nvenc @ 0x555b78a9f040] Codec not supported
[2026-06-03 17:49:42.209]: Error: [av1_nvenc @ 0x555b78a9f040] Provided device doesn't support required NVENC features
[2026-06-03 17:49:42.210]: Error: Could not open codec [av1_nvenc]: Function not implemented
[2026-06-03 17:49:42.239]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:49:42.239]: Info: Screencasting with NvFBC
[2026-06-03 17:49:42.338]: Info: Creating encoder [hevc_nvenc]
[2026-06-03 17:49:42.338]: Info: Color coding: SDR (Rec. 709)
[2026-06-03 17:49:42.338]: Info: Color depth: 10-bit
[2026-06-03 17:49:42.338]: Info: Color range: JPEG
[2026-06-03 17:49:42.338]: Info: Streaming bitrate is 1000000
[2026-06-03 17:49:42.364]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2026-06-03 17:49:42.407]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:49:42.407]: Info: 
[2026-06-03 17:49:42.407]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-06-03 17:49:42.407]: Info: 
[2026-06-03 17:49:42.407]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-06-03 17:49:42.407]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-06-03 17:49:42.408]: Info: Starting system tray
[2026-06-03 17:49:42.410]: Error: Failed to create client: Daemon not running
[2026-06-03 17:49:42.411]: Info: Configuration UI available at [https://100.70.253.56:47990]
[2026-06-03 17:49:42.435]: Info: System tray created
[2026-06-03 17:49:42.435]: Info: Starting main loop
[2026-06-03 17:50:03.373]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-06-03 17:50:03.373]: Info: Trying encoder [nvenc]
[2026-06-03 17:50:03.373]: Info: Screencasting with NvFBC
[2026-06-03 17:50:03.543]: Info: Creating encoder [h264_nvenc]
[2026-06-03 17:50:03.543]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:50:03.543]: Info: Color depth: 8-bit
[2026-06-03 17:50:03.543]: Info: Color range: JPEG
[2026-06-03 17:50:03.543]: Info: Streaming bitrate is 1000000
[2026-06-03 17:50:03.610]: Info: Creating encoder [hevc_nvenc]
[2026-06-03 17:50:03.610]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:50:03.610]: Info: Color depth: 8-bit
[2026-06-03 17:50:03.610]: Info: Color range: JPEG
[2026-06-03 17:50:03.610]: Info: Streaming bitrate is 1000000
[2026-06-03 17:50:03.657]: Info: Creating encoder [av1_nvenc]
[2026-06-03 17:50:03.657]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:50:03.657]: Info: Color depth: 8-bit
[2026-06-03 17:50:03.657]: Info: Color range: JPEG
[2026-06-03 17:50:03.657]: Info: Streaming bitrate is 1000000
[2026-06-03 17:50:03.664]: Warning: [av1_nvenc @ 0x7f44dc483700] Codec not supported
[2026-06-03 17:50:03.664]: Error: [av1_nvenc @ 0x7f44dc483700] Provided device doesn't support required NVENC features
[2026-06-03 17:50:03.665]: Error: Could not open codec [av1_nvenc]: Function not implemented
[2026-06-03 17:50:03.695]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:50:03.695]: Info: Screencasting with NvFBC
[2026-06-03 17:50:03.800]: Info: Creating encoder [hevc_nvenc]
[2026-06-03 17:50:03.800]: Info: Color coding: SDR (Rec. 709)
[2026-06-03 17:50:03.800]: Info: Color depth: 10-bit
[2026-06-03 17:50:03.800]: Info: Color range: JPEG
[2026-06-03 17:50:03.800]: Info: Streaming bitrate is 1000000
[2026-06-03 17:50:03.826]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2026-06-03 17:50:03.868]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:50:03.868]: Info: 
[2026-06-03 17:50:03.868]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-06-03 17:50:03.868]: Info: 
[2026-06-03 17:50:03.868]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-06-03 17:50:03.868]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-06-03 17:50:03.868]: Info: Executing [Desktop]
[2026-06-03 17:50:04.052]: Info: New streaming session started [active sessions: 1]
[2026-06-03 17:50:04.112]: Info: CLIENT CONNECTED
[2026-06-03 17:50:04.395]: Info: Found [1] outputs
[2026-06-03 17:50:04.395]: Info: Virtual Desktop: 1920x1080
[2026-06-03 17:50:04.395]: Info: XrandR: available
[2026-06-03 17:50:04.395]: Info: -- Output --
[2026-06-03 17:50:04.395]: Info:   Resolution: 1920x1080
[2026-06-03 17:50:04.395]: Info:   Offset: 0x0
[2026-06-03 17:50:04.425]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:50:04.425]: Info: Screencasting with NvFBC
[2026-06-03 17:50:04.493]: Info: Setting default sink to: [sink-sunshine-stereo]
[2026-06-03 17:50:04.494]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2026-06-03 17:50:04.531]: Info: Creating encoder [hevc_nvenc]
[2026-06-03 17:50:04.531]: Info: Color coding: SDR (Rec. 601)
[2026-06-03 17:50:04.531]: Info: Color depth: 8-bit
[2026-06-03 17:50:04.531]: Info: Color range: MPEG
[2026-06-03 17:50:04.531]: Info: Streaming bitrate is 30988000
[2026-06-03 17:50:04.547]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2026-06-03 17:50:04.564]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2026-06-03 17:50:10.514]: Info: Opening UI from system tray
[2026-06-03 17:50:10.534]: Info: Opened url [https://localhost:47990]
[2026-06-03 17:51:01.895]: Info: Web UI: [100.70.253.56] -- not authorized
[2026-06-03 17:51:52.962]: Info: Terminate handler called
[2026-06-03 17:51:52.962]: Error: Couldn't accept incoming connections: Operation canceled
[2026-06-03 17:51:52.966]: Info: Main loop has exited
[2026-06-03 17:51:52.966]: Info: Setting default sink to: [alsa_output.usb-SteelSeries_Arctis_Nova_7-00.analog-stereo]
[2026-06-03 17:51:53.080]: Error: Couldn't release NvFBC context from current thread: 
[2026-06-03 17:51:53.080]: Error: Couldn't release NvFBC context from current thread:

Online logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions