mariotaku / moonlight-tv

Lightweight NVIDIA GameStream Client, for LG webOS TV and embedded devices like Raspberry Pi
GNU General Public License v3.0
827 stars 30 forks source link

Support for Multiple Sunshine Instances from the Same IP Address #437

Closed trottdeaje closed 4 months ago

trottdeaje commented 4 months ago

Description

Support for displaying multiple Sunshine instances from the same IP address in moonlight. Currently only shows one instance, which is either the first one it detects or the one that comes first alphabetically (I assume). This differs from the PC version of Moonlight, which correctly displays all Sunshine instances.

moonlight-pc moonlight-tv

Use case: I use a software called Duo that creates multiple virtual desktop instances on one PC, each running a separate instance of Sunshine which do not conflict with each other. These instances are accessible under the same IP but different ports.

Motivation

Would make it more flexible and user-friendly when streaming games to multiple devices. Currently, when my partner and I play Baldurs Gate 3 using Duo (I'm on steam deck and she's on TV) I have to first quit sunshine from my main non-virtual desktop so that her sunshine instance shows up in moonlight-tv. Since her instance is named Kee, that is the next instance that shows up after AJ-DESKTOP. If I wanted to instead use the TV and she use the steam deck. I'd have to go shut down her instance or rename my instance so my name comes before hers. I think you can see how this can get tedious after a while :)

Additional Context

moonlight-tv version: 1.6.17 TV: LG C2 WebOS TV Version: 8.3.0-2301 (number1-nameri)

Attached are screenshots of the Moonlight client on PC correctly showing all Sunshine instances (AJ-DESKTOP, Kee, Zaj) and moonlight-tv only showing one.

Thank you for all the hard work and building this amazing port!

trottdeaje commented 4 months ago

Just noticed #429 🤦🏼 apologies, Feel free to close this issue and I can move everything to that thread.

mariotaku commented 4 months ago

I'll take a look into how moonlight handles hosts with same IP.