First of all, since this is my first post here, thanks a lot for your work, I discovered rclone only some days ago and I don't know how I could have lived without it until now.
Getting to the problem, I am trying to launch a DLNA server from termux with: rclone serve dlna myremote:
But I get this error: 2019/07/31 20:08:39 error writing to UDP socket: write udp 0.0.0.0:1900->239.255.255.250:1900: sendto: operation not permitted
After the command, I can see the DLNA server with the folders, but they are empty.
If I use the same command from my PC with the same rclone.conf and the same version (1.48.0), it works perfectly.
Do you know why this happens or have any suggestions? Thanks
Assuming you don't have the right privileges to open the ports it is asking for based on that error. I don't personally have or use any android though unfortunately.
Are you able to run the commands with elevated privs or something along those lines?
Update: Termux devs have not answered yet, but in the meantime I discovered that the DLNA server folders are empty because only image files are listed (.jpg and .png). This is strange since, as the rclone manual says, "Rclone will list all files present in the remote, without filtering based on media formats or file extensions".
Moreover, I compiled the rclone package from the official repo in Termux, and it has the same problem.
I just tried renaming a .mkv file to .jpg to see if I could see it, and I got an even stranger result, that is that now I see the file, but as if it was an empty folder
Edit: No, for some reason renaming a file creates a folder with the same name of the file, with the file inside it, that the DLNA server does not list (but the file maintains the same extension as before the renaming) (Is this something related to the fact that it is a crypted remote?). I'll try uploading an extension changed video to see if it is served this way.
I don't think it's the same issue, I too have the same problem with my Samsung TV (that says that "the content cannot be displayed", and it does not show anything, indifferently if I start the DLNA server from PC or Android), but in that issue VLC on PC and Android DLNA client apps see the contents without problems (like they do for me too when I start the DLNA server from my PC), while in my case every client I use (VLC on Fedora and VLC, LocalCast and BubbleUPnP on Android) only sees images if I start the server from Termux on Android.
It's not a termux issue. Happens with any app that can run it. I think with dlna you can disable udp (or multicast I can't remember which) packets but I don't think this is available on rclone.