Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't discover DLNA server

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Alex.farol
Posts: 9
Joined: 2021-09-13 13:31

Can't discover DLNA server

#1 Post by Alex.farol »

Hello, Friends!

I’m trying to set a DLNA server on my home network in order to access a media library from different devices. It’s a pretty standard setup, where I receive the internet signal from a Fiberhome router, but use a pi-hole (raspberry pi) as the DHCP server. Also, on this device I run a wireguard VPN for external access (mobile) to pi-hole filtering. Internally, I have 192.168.1.x, VPN uses 10.100.0.x.

For so many times, I have tried to install minidlna, firstly on the raspberry an lastly on two other regular Debian machines (x86).

The problem is that the server never gets discovered by the others clients. Using VLC, I perceived that it only can be seen on the host where I’m trying to install minidlna.

I’ve checked permissions, tried to tackle firewall settings, etc., and I’ve turned internet upside down searching for an answer, but couldn’t put it to work as it is intended to.

As you can see, I’m not a network expert :(

Thanks in advance for your help

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Can't discover DLNA server

#2 Post by reinob »

Can you confirm that minidlna is actually starting and listening on the relevant network interface?
You could test with "netstat -tulpn | grep minidlnad" and post the output here.

(If you don't have netstat, replace it with "ss", keeping the rest identical.. the output will be slightly different, but equivalent..)

Alex.farol
Posts: 9
Joined: 2021-09-13 13:31

Re: Can't discover DLNA server

#3 Post by Alex.farol »

Hi!

I believe it is started, but don’t know if it is listening appropriately. Here’s it’s status:

● minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server
Loaded: loaded (/lib/systemd/system/minidlna.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-09-13 03:19:35 BST; 14h ago
Docs: man:minidlnad(1)
man:minidlna.conf(5)
Main PID: 15656 (minidlnad)
Tasks: 2 (limit: 2059)
CGroup: /system.slice/minidlna.service
└─15656 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -r

Sep 13 03:19:35 raspberrypi systemd[1]: Starting MiniDLNA lightweight DLNA/UPnP-AV server...
Sep 13 03:19:35 raspberrypi systemd[1]: Started MiniDLNA lightweight DLNA/UPnP-AV server.


Netstat:

tcp 0 0 0.0.0.0:8200 0.0.0.0:* LISTEN 15656/minidlnad
udp 0 0 239.255.255.250:1900 0.0.0.0:* 15656/minidlnad
udp 0 0 192.168.1.33:35882 0.0.0.0:* 15656/minidlnad

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Can't discover DLNA server

#4 Post by reinob »

OK, that looks good.

Next would be to check the firewall. iptables or nftables?
You said you "tackled" the firewall settings.. maybe you could double-check and/or post here whatever effective rules are in place.

If nftables, then "nft list ruleset"
If iptables, then "iptables-save"

and post here the output (filter/censor if/as needed, but take care of not removing what may be critical for finding the cause of your issue.. :)

Alex.farol
Posts: 9
Joined: 2021-09-13 13:31

Re: Can't discover DLNA server

#5 Post by Alex.farol »

I know almost nothing about iptables and exactly nothing about nft. I tried configure it through firewalld (firewall-config).
"nft" doesn't exist on my system. iptables-save gives the following (no filter):
# Generated by xtables-save v1.8.2 on Tue Sep 14 20:03:04 2021
*nat
:PREROUTING ACCEPT [4800:1746197]
:INPUT ACCEPT [5:300]
:POSTROUTING ACCEPT [1537:363046]
:OUTPUT ACCEPT [1537:363046]
:PREROUTING_direct - [0:0]
:PREROUTING_ZONES_SOURCE - [0:0]
:PREROUTING_ZONES - [0:0]
:POSTROUTING_direct - [0:0]
:POSTROUTING_ZONES_SOURCE - [0:0]
:POSTROUTING_ZONES - [0:0]
:OUTPUT_direct - [0:0]
:POST_public - [0:0]
:POST_public_log - [0:0]
:POST_public_deny - [0:0]
:POST_public_allow - [0:0]
:PRE_public - [0:0]
:PRE_public_log - [0:0]
:PRE_public_deny - [0:0]
:PRE_public_allow - [0:0]
-A PREROUTING -j PREROUTING_direct
-A PREROUTING -j PREROUTING_ZONES_SOURCE
-A PREROUTING -j PREROUTING_ZONES
-A POSTROUTING -j POSTROUTING_direct
-A POSTROUTING -j POSTROUTING_ZONES_SOURCE
-A POSTROUTING -j POSTROUTING_ZONES
-A OUTPUT -j OUTPUT_direct
-A PREROUTING_ZONES -g PRE_public
-A POSTROUTING_ZONES -g POST_public
-A POST_public -j POST_public_log
-A POST_public -j POST_public_deny
-A POST_public -j POST_public_allow
-A PRE_public -j PRE_public_log
-A PRE_public -j PRE_public_deny
-A PRE_public -j PRE_public_allow
COMMIT
# Completed on Tue Sep 14 20:03:04 2021
# Generated by xtables-save v1.8.2 on Tue Sep 14 20:03:04 2021
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [8209:3660437]
:INPUT_direct - [0:0]
:INPUT_ZONES_SOURCE - [0:0]
:INPUT_ZONES - [0:0]
:FORWARD_direct - [0:0]
:FORWARD_IN_ZONES_SOURCE - [0:0]
:FORWARD_IN_ZONES - [0:0]
:FORWARD_OUT_ZONES_SOURCE - [0:0]
:FORWARD_OUT_ZONES - [0:0]
:OUTPUT_direct - [0:0]
:IN_public - [0:0]
:IN_public_log - [0:0]
:IN_public_deny - [0:0]
:IN_public_allow - [0:0]
:FWDI_public - [0:0]
:FWDI_public_log - [0:0]
:FWDI_public_deny - [0:0]
:FWDI_public_allow - [0:0]
:FWDO_public - [0:0]
:FWDO_public_log - [0:0]
:FWDO_public_deny - [0:0]
:FWDO_public_allow - [0:0]
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j INPUT_direct
-A INPUT -j INPUT_ZONES_SOURCE
-A INPUT -j INPUT_ZONES
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i lo -j ACCEPT
-A FORWARD -j FORWARD_direct
-A FORWARD -j FORWARD_IN_ZONES_SOURCE
-A FORWARD -j FORWARD_IN_ZONES
-A FORWARD -j FORWARD_OUT_ZONES_SOURCE
-A FORWARD -j FORWARD_OUT_ZONES
-A FORWARD -m conntrack --ctstate INVALID -j DROP
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -j OUTPUT_direct
-A INPUT_ZONES -g IN_public
-A FORWARD_IN_ZONES -g FWDI_public
-A FORWARD_OUT_ZONES -g FWDO_public
-A IN_public -j IN_public_log
-A IN_public -j IN_public_deny
-A IN_public -j IN_public_allow
-A IN_public -p icmp -j ACCEPT
-A IN_public_allow -p tcp -m tcp --dport 22 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
-A IN_public_allow -p tcp -m tcp --dport 8200 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
-A IN_public_allow -p udp -m udp --dport 1900 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT
-A FWDI_public -j FWDI_public_log
-A FWDI_public -j FWDI_public_deny
-A FWDI_public -j FWDI_public_allow
-A FWDI_public -p icmp -j ACCEPT
-A FWDO_public -j FWDO_public_log
-A FWDO_public -j FWDO_public_deny
-A FWDO_public -j FWDO_public_allow
COMMIT
# Completed on Tue Sep 14 20:03:04 2021
# Generated by xtables-save v1.8.2 on Tue Sep 14 20:03:04 2021
*security
:INPUT ACCEPT [6195:823756]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [8209:3660437]
:INPUT_direct - [0:0]
:OUTPUT_direct - [0:0]
:FORWARD_direct - [0:0]
-A INPUT -j INPUT_direct
-A FORWARD -j FORWARD_direct
-A OUTPUT -j OUTPUT_direct
COMMIT
# Completed on Tue Sep 14 20:03:04 2021
# Generated by xtables-save v1.8.2 on Tue Sep 14 20:03:04 2021
*raw
:PREROUTING ACCEPT [12121:2905030]
:OUTPUT ACCEPT [8209:3660437]
:PREROUTING_direct - [0:0]
:PREROUTING_ZONES_SOURCE - [0:0]
:PREROUTING_ZONES - [0:0]
:OUTPUT_direct - [0:0]
:PRE_public - [0:0]
:PRE_public_log - [0:0]
:PRE_public_deny - [0:0]
:PRE_public_allow - [0:0]
-A PREROUTING -j PREROUTING_direct
-A PREROUTING -j PREROUTING_ZONES_SOURCE
-A PREROUTING -j PREROUTING_ZONES
-A OUTPUT -j OUTPUT_direct
-A PREROUTING_ZONES -g PRE_public
-A PRE_public -j PRE_public_log
-A PRE_public -j PRE_public_deny
-A PRE_public -j PRE_public_allow
COMMIT
# Completed on Tue Sep 14 20:03:04 2021
# Generated by xtables-save v1.8.2 on Tue Sep 14 20:03:04 2021
*mangle
:PREROUTING ACCEPT [12121:2905030]
:INPUT ACCEPT [12121:2905030]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [8209:3660437]
:POSTROUTING ACCEPT [9337:3995694]
:PREROUTING_direct - [0:0]
:PREROUTING_ZONES_SOURCE - [0:0]
:PREROUTING_ZONES - [0:0]
:POSTROUTING_direct - [0:0]
:INPUT_direct - [0:0]
:OUTPUT_direct - [0:0]
:FORWARD_direct - [0:0]
:PRE_public - [0:0]
:PRE_public_log - [0:0]
:PRE_public_deny - [0:0]
:PRE_public_allow - [0:0]
-A PREROUTING -j PREROUTING_direct
-A PREROUTING -j PREROUTING_ZONES_SOURCE
-A PREROUTING -j PREROUTING_ZONES
-A INPUT -j INPUT_direct
-A FORWARD -j FORWARD_direct
-A OUTPUT -j OUTPUT_direct
-A POSTROUTING -j POSTROUTING_direct
-A PREROUTING_ZONES -g PRE_public
-A PRE_public -j PRE_public_log
-A PRE_public -j PRE_public_deny
-A PRE_public -j PRE_public_allow
COMMIT
This is what I did with firewall-config:
firewall.png
firewall.png (79.39 KiB) Viewed 3296 times

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Can't discover DLNA server

#6 Post by bester69 »

Something in the router?..
first thing would be doing ping between hosts..if there is answering then most probably would be any firewall .. disable them first (you could use gufw interface)
You can also install kodi to provide dlna server if its for temporary or casual use.. I prefer to use kodi than minidlna ..this way I dont need to install any server, furthermore found out seems to work better than minidlna...kodi also works very good as client dlna and also supports airplay so you could use kodi insteed vlc.. or configure kodi to use vlc as an external player that way, you would be able to discover dlna and play it in vlc throught kodi
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Alex.farol
Posts: 9
Joined: 2021-09-13 13:31

Re: Can't discover DLNA server

#7 Post by Alex.farol »

I get ping from hosts, they're on the same network. I tried to disable router firewall but get same results. I also tried to do that with kodi, yet didn't get seen by other devices.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Can't discover DLNA server

#8 Post by bester69 »

Alex.farol wrote: 2021-09-16 09:54 I get ping from hosts, they're on the same network. I tried to disable router firewall but get same results. I also tried to do that with kodi, yet didn't get seen by other devices.
hosts need to share same gateway ip (usually 192.168.1.1).. they need to be in same network gateway..I guest you have dhcp and everything well configured as youre able to get ip answering...
you could try by turnning off the router and create a bridge usb network with your smartphone and try with android VLC to discover dlna.. perhaps the problem is you router has forwarding disable or some firewall feature is preventing internal port fordwarding, thought im not sure normal routers cant block internal traffic fordwarding...

What i meant is very easy to figure it out what is preventing you... my guess is: or dhcp worng configured, or router firewall or linux firewall.. or your client host is unable to reach server.... Have you tried with a different client software and hardware host (perhaps a smartphone and kodi player)?
Last edited by bester69 on 2021-09-16 13:46, edited 2 times in total.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Can't discover DLNA server

#9 Post by bester69 »

there is also a command tool to port fordwarding, that works like a ping to any port to check if its listening
https://www.cyberciti.biz/faq/how-do-i- ... sd-server/
Alex.farol wrote: 2021-09-16 09:54 I get ping from hosts, they're on the same network. I tried to disable router firewall but get same results. I also tried to do that with kodi, yet didn't get seen by other devices.
What client are you using to discover dlna, vlc?.. have you tried another different client like kodi?... perhaps youre not using a properly client..and the problem is with your client player
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Alex.farol
Posts: 9
Joined: 2021-09-13 13:31

Re: Can't discover DLNA server

#10 Post by Alex.farol »

I’m trying with Kodi, VLC, Windows Media Player, PS3 and with two smart TV’s.

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Can't discover DLNA server

#11 Post by reinob »

Alex.farol wrote: 2021-09-14 19:11 I know almost nothing about iptables and exactly nothing about nft. I tried configure it through firewalld (firewall-config).
"nft" doesn't exist on my system. iptables-save gives the following (no filter):
# Generated by xtables-save v1.8.2 on Tue Sep 14 20:03:04 2021
...
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j INPUT_direct
-A INPUT -j INPUT_ZONES_SOURCE
-A INPUT -j INPUT_ZONES
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -j REJECT --reject-with icmp-host-prohibited
...
This is what I did with firewall-config:firewall.png
That whole iptables configuration looks overly complicated, and to be honest, right now I cannot quite make sense of it (nor am I inclined to spend the next 15 minutes of my life decoding that mess :), but I note that you have a default rule of "-A INPUT -j REJECT", which may or may not apply to attempts to discover the DLNA server (DLNA uses port 8200 but also ICMP, IGMP, DNS and who-knows-what in order to even discover which servers are available).

I would suggest completely disabling any sort of firewall, and if it works OK, then you can set-up the firewall again. I'd recommend a simple set of rules for what you actually need, and not such a monster configuration with multiple zones, etc. which probably (but correct me if I'm wrong) you don't need.

Sometimes less is more, and sometimes writing a set of simple firewall rules by hand is better than having a GUI program pre-generate a whole framework of rules just for something that should be very simple :)

Good luck!

Post Reply