I have installed minidlna on my raspi to stream media to my tablet and pc. After installation the raspi was not discovered by the client.. After some troubleshooting I found following line in the log:
minissdp.c:335: error: sendto(udp_notify=7, 'IP OF MY RASPI'): Operation not permitted
The 'operation not permitted reminded me of some other tests I made where iptables were included so I turned it off for testing purposes and it worked. The messages also stop appearing after iptables turned off. When iptables turned on the messages appear after the 'notify interval' stated in the minidlna config file. Unfortunately I don't know why iptables blocks the DLNA discovery?! Iptables is configured to allow all communication within the same subnet.. See the following output from the iptables:
There are also some other rule below but these are for internet connection which don't affect the first two rules mentioned here.
Code: Select all
Chain INPUT ACCEPT all -- any any anywhere loopback/8 ACCEPT all -- eth0 any local subnet local subnet Chain OUTPUT ACCEPT all -- any any loopback/8 anywhere ACCEPT all -- any eth0 local subnet local subnet
How is the discovery process working exactly? I only read it should be a udp http broadcast which should be allowed, right?
Please help me, working on this issue for hours and can't find the solution... Totally stuck here.