I found uPnP is not advised due to security risk
There are different uPnP things: one that lets apps open ports in your router (security risk) and one with media renderer (safe).
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I found uPnP is not advised due to security risk
There are different uPnP things: one that lets apps open ports in your router (security risk) and one with media renderer (safe).
Oh wow, I just kept thinking renderer somehow opens ports for accepting streams. Let me revisit it then.
I was overthinking it bit too much. I simply have to enable sharing
Is there an explanation somewhere about how to do this?
I was thinking I needed uPnP server on HTPC but after reading some more realized that's probably not the thing.
Then I found VLC should be able to do it (https://www.baeldung.com/linux/upnp-dlna-clients)
we just select Universal Plug’n’Play from theLocal Network category on the left.
but after that it doesn't just show up under device where I can cast
I think gmediarenderer is what I'm looking for
Upnp is not recommended for router and switch setup, it’s the normal way for devices on the local network to advertise and discover each others functionality though and is definitely the way off the shelf doodads do it.
It’s like how anyone in the house can open the refrigerator door but people outside can’t.
got it, also I was overthinking it bit too much. I simply have to enable sharing
barebones, but you can use RTP with pipewire