Media sharing doesn't suggest wired network interfaces without global connectivity
Steps to reproduce:
- Create a VirtualBox VM with Arch Linux and GNOME 46.
- Configure two network adapters in VirtualBox: one as "Host-only Adapter", the other as "NAT".
(VirtualBox and Arch Linux are not requisites, any GNOME installation on a computer with two NICs would do, as long as one is connected to a local network without internet access, and the other is connected to the Internet.) - Go to Settings -> Network and configure two separate NetworkManager profiles for the two network interfaces. Choose the corresponding netdevs in MAC Address fields.
- Go to Settings -> Sharing -> Media Sharing.
- Observe that only the "Internet" connection is suggested for sharing, and "Host network" is not on the list:
It looks like the reason that "Host network" is not shown is because it doesn't have global Internet connectivity. However, the whole purpose of creating a separate network for me was to avoid exposing shared media into the internet. I think local networks should be on this list as well.
Sometimes it's possible to get "Host network" on the list if you shuffle around the profiles two times, and the Media Sharing dialog continues believing that "Host network" is connected to the internet.
Reference settings for my VirtualBox setup, as shown by nmcli: nmcli.txt