How to Use Ubuntu’s Media Sharing Feature

Ubuntu’s Media Sharing setting lets compatible devices on your local network browse, search, and play selected music, pictures, and videos from your computer over UPnP or DLNA. To use it, open Settings > Sharing > Media Sharing, turn the service on, select the network where it should be available, and choose the folders to publish. This is a media library for compatible TVs, phones, and game consoles; it is not a general network drive or a tool for sending individual files.

GNOME Settings open to the Sharing panel, with the Media Sharing switch shown off
The Sharing panel is where you open Ubuntu’s Media Sharing controls.

What you need before you start

The original instructions tied this feature to Ubuntu 19.10. That release reached end of life on July 17, 2020, so do not install it or run the old commands that rewrote APT sources to upgrade into it. Use a currently supported Ubuntu release with GNOME Settings instead; Ubuntu’s release cycle page lists supported versions.

The GNOME Sharing panel requires the Rygel package. If you cannot find Media Sharing in Settings, install it from Ubuntu’s repositories, then reopen Settings:

sudo apt update
sudo apt install rygel

Ubuntu’s package archive lists Rygel for supported LTS releases, including 22.04, 24.04, and 26.04. See Ubuntu’s Rygel package listing and the GNOME media-sharing instructions. Menu wording can differ slightly between Ubuntu and GNOME versions.

Turn on media sharing

  1. Press the Super key, type Sharing, and open the Sharing panel in Settings. You can also open Settings and select Sharing in the sidebar.
  2. Choose Media Sharing. If the Device Name field is editable, give your computer a recognizable name so it is easier to identify from a TV or phone.
  3. Switch Media Sharing on. In the Networks section, enable only the network connections where you want the media library to be available. GNOME lists the networks connected to your computer.
  4. Review the shared folders before closing the dialog. The default list is Music, Pictures, and Videos. Remove any folder you do not want to publish by clicking its ×.
Media Sharing enabled with an editable Device Name field and the Wi-Fi network switch on
Choose a clear device name and enable sharing only on the intended network.

Only include folders you intend other devices on that network to browse. A guest network or a network with device isolation may prevent your TV or phone from discovering the Ubuntu computer even when sharing is enabled.

Add a folder to the media library

  1. In the Media Sharing dialog, click the + button below the folder list.
  2. In the folder chooser, navigate to the directory containing the media you want to share. Select the folder itself and click Open.
  3. Check that the folder now appears in the list. Repeat these steps for each additional media folder you want to make available.
Media Sharing folder list beside a folder chooser with Movies selected and the Open button visible
Select a folder in the chooser, then click Open to add it to the shared list.

Adding a directory makes it available through the media-sharing service; it does not create a Windows SMB share or expose the whole disk. Keep the selection focused on media folders, and avoid adding a home directory or a location that contains private documents.

Browse the share from a TV or phone

On the receiving device, open its media library, network media, or DLNA/UPnP browser and look for the computer name you set. Select it to browse the shared folders, then choose a song, picture, or video. The exact menu name depends on the TV, game console, or media-player app. A phone may need a player that supports UPnP or DLNA; a regular file-browsing app may not show media servers.

Ubuntu advertises the selected media for compatible clients. It does not mirror the desktop or provide a general-purpose file-transfer workflow. Playback also depends on whether the receiving device supports the media format, so a file can appear in the library but still fail to play on a particular client.

Remove a folder or stop sharing

To remove one custom folder, return to Settings > Sharing > Media Sharing and click the × beside that folder. To temporarily stop the service for every network, switch Media Sharing off. You can also turn off an individual network in the Networks section while keeping the other selected networks enabled.

Media Sharing list containing Music, Pictures, Videos, and a custom Movies folder with its remove control
The × beside Movies removes that folder from the shared media list.

If another device cannot find Ubuntu

  • Confirm the main Media Sharing switch is on and that the active network is enabled under Networks.
  • Make sure the receiving device has a UPnP/DLNA media browser and is connected to a network that can discover other devices. Guest Wi-Fi and router client-isolation settings commonly block local discovery.
  • If the control is missing, check that Rygel is installed, then close and reopen Settings.
  • If the service is enabled but discovery still fails, check the router or firewall’s local-network rules. Keep the firewall enabled and allow only the trusted local traffic needed by your network setup.

Once the device appears, browse the selected library from its media app. If it finds the server but cannot play a particular item, check that device’s supported audio or video formats.

Leave a Comment

How to Share Files Over Bluetooth on Linux with Blueman

How to Share Files Over Bluetooth on Linux with Blueman

Send and receive files over Bluetooth on Linux with Blueman. Install OBEX support, pair devices, choose a file, accept transfers, and fix common issues.

How to Connect to Servers with GNOME Files

How to Connect to Servers with GNOME Files

Connect GNOME Files to SSH/SFTP, FTP, SMB, WebDAV, or NFS with the correct server URI, sign-in details, and fixes for common connection errors.

How to Connect to Servers in Linux With the KDE Dolphin File Manager

How to Connect to Servers in Linux With the KDE Dolphin File Manager

Open SFTP, SSH, SMB, FTP, NFS, and WebDAV locations in Dolphin, sign in safely, transfer files, and save network folders for later.

How to Use a PS4 Controller on Linux: USB, Bluetooth, and Steam

How to Use a PS4 Controller on Linux: USB, Bluetooth, and Steam

Connect a DualShock 4 to Linux by USB or Bluetooth, then check controller detection and configure Steam Input only when a game needs it.

How to Speed Up the Fedora Linux App Installer

How to Speed Up the Fedora Linux App Installer

Use DNF5 parallel downloads to reduce RPM install waits in GNOME Software, then tell when mirror or Flatpak delays need a different fix.

How to Use iCloud on Linux Through Your Web Browser

How to Use iCloud on Linux Through Your Web Browser

Access iCloud on Linux in a current browser. Learn how to sign in, use iCloud Drive and other web apps, and understand the limits of browser access.

How to Back Up the Linux Bootloader to a USB Drive

How to Back Up the Linux Bootloader to a USB Drive

Save GRUB settings, boot files, and UEFI entry details to removable storage, then use rescue media to repair the correct boot path safely.

How to Install and Set Up Bitwarden on Linux

How to Install and Set Up Bitwarden on Linux

Install Bitwarden on Linux with the right DEB, RPM, Snap, Flatpak, or AppImage package, then sign in and set a secure vault timeout.

How to Change the Screensaver on Xfce: Choose a Theme and Set the Idle Time

How to Change the Screensaver on Xfce: Choose a Theme and Set the Idle Time

Pick a screensaver theme in Xfce, preview it, choose when it starts, and configure automatic locking in the separate Lock Screen tab.

How to Disable the Screensaver in GNOME Shell

How to Disable the Screensaver in GNOME Shell

Stop GNOME Shell from blanking or locking your display automatically. Change Power and Screen Lock settings, or use Caffeine for a temporary keep-awake toggle.