~/guides/lg-tv-file-sharing-samba
$ cat guides/lg-tv-file-sharing-samba.md

File sharing on an LG TV.

Copy files to the TV from Windows or Mac, manage them from your phone's browser, and play them on other devices. On a rooted TV, each is one press.

The three add-ons

add-onwhat you getwhere
SambaShare /opt/files with Windows and Mac, SMB2 and up. It shows up in Windows' Network.\\<TV IP>\TV, user tv
File BrowserUpload, download and manage files from a browser on your phone or computer.http://<TV IP>:8090, user admin
DLNA media serverPlay videos, music and photos from the TV and its USB drives on other TVs, consoles and VLC."LG TV (Entware)"

All three come with Entware, from https://ohmybahgosh.dev/repo on a rooted TV. Add them in the TV app's Add-ons, or from your phone with Manage from your phone.

Safe by default

  • A random 16-character password, made on the TV, for anything with a login. No guest access.
  • One shared folder, /opt/files, with Downloads, Media and Sync, and USB drives in USB. Removing a service never deletes your files.
  • A service won't start if something else on the TV has its port. File Browser uses 8090, because webOS takes 8080.

See the password

Open the service in the TV app's Add-ons for its address, password and a QR code, or over SSH:

$ webos-entware info samba
$ webos-entware password samba --ask

Away from home? Add Tailscale and reach File Browser over your tailnet.

Related

FAQ

Can an LG TV share files over Samba (SMB)?
Not out of the box. On a rooted TV, Entware's Samba add-on shares a folder with Windows and Mac over SMB2 and up, with a password, and it shows up in Windows' Network.
Where do the shared files live?
In /opt/files on the TV's app storage, with Downloads, Media and Sync folders, and USB drives under USB.
Is guest access on?
No. Each service gets a random 16-character password made on the TV, and nothing starts with its stock settings.
Can other devices play the TV's files?
Yes, with the DLNA media server add-on: other TVs, consoles and VLC see it as "LG TV (Entware)" and can play videos, music and photos from it.