Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DLNA discovery doesn't work

    Scheduled Pinned Locked Moved General pfSense Questions
    24 Posts 5 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gblenn @Fandangos
      last edited by

      @Fandangos said in DLNA discovery doesn't work:

      Not exactly a pfsense question but is there any device that does only access point? No interference at all straight into pfsense from wireless devices?

      How did you connect your router now that you have changed into an AP? Even if it has an "AP Mode", which may or may not bridge WAN and LAN ports, it might be worth making sure it's connected with a LAN port (not the WAN port).

      To eliminate any rules or device isolation is going on. Can you test by connecting a PC/Laptop to your wifi and ping the Gerbera server? There are utilities on Android that you can use as well... Then try pinging the Android phone as well from your PC or the Unraid server.

      F 1 Reply Last reply Reply Quote 0
      • F
        Fandangos @Gblenn
        last edited by

        @Gblenn

        Pinging does work. It's connected using LAN port.

        I don't know why, I don't know how but.. I changed the access point router into regular router.

        The subnet is 10.27.33.1/24.

        The router is now 10.27.33.201 and dhcp is on.

        Now it's working.
        IGMP snooping is on.

        This is the same subnet on pfsense.

        So it was the access point indeed.
        I'll test later if just disabling dhcp will kill the discovery proccess.

        I really would like to understand this. If DHCP is off in access point mode everything under L2 should be managed by the AP? By pfsense?

        I mean if everything is under the same subnet, those devices are all the same layer 2 right?
        Doesn't matter if there's a unmanaged switch on one side and an access point in the other side?

        G 1 Reply Last reply Reply Quote 0
        • G
          Gblenn @Fandangos
          last edited by

          @Fandangos Hmmm, can't be a good thing to have two DHCP servers on the same network...

          What port are you using on the router to connect it to the pfsense LAN?

          And just to be 100% clear about how things are connected, can you draw a simple picture diagram of your network?

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @Gblenn
            last edited by

            @Gblenn said in DLNA discovery doesn't work:

            And just to be 100% clear about how things are connected, can you draw a simple picture diagram of your network?

            Yup that would be nice..

            If you turned it into a router, this would isolate your L2 between the wifi devices wan and lan ports.. Even if you put the same IP range on them - and then no dlna wouldn't work.

            Unless all the devices were behind the wifi router on the same L2.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            F 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Yup the initial description here implies the clients and what they are trying to discover are on separate interfaces in pfSense. But then the rest of the discussion assumes they are not. 😕

              A diagram would really help here.

              1 Reply Last reply Reply Quote 0
              • F
                Fandangos @johnpoz
                last edited by

                @johnpoz @Gblenn @stephenw10

                c4db5903-b081-4b69-88d7-1a1c94dbfcd7-image.png

                Router config now that's working:

                4245e80b-c1a5-46c6-908f-7d1edd019ec8-image.png

                This is the interface on pfsense:

                f3a38790-827c-4e56-a1fc-f98d1063ce95-image.png

                and firewall rules:

                4f51a54e-d418-40e1-857e-c046e59c4bf4-image.png

                I can honestly say that the tp link router in access point mode does not work with dlan direcovery from phone to mini dlna or volumio.

                Now it's working. So I guess if I turn DHCP off and leave everyhing as is on router, the discovery should still work and it should be closer to an access point?

                Maybe this is the case of bug in access point mode on tp link side?

                Also, can I say as I once said, that the amount of support in this forum is one of the best I ever seen online. Thank you so much for taking so time to clear the doubts I have. I always learn a lot here.

                G 1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Mmm, OK it really is just one interface in pfSense and all on the same subnet then. So, yes, nothing in pfSense can affect that traffic. The DLNA discovery broadcast traffic should go directly between the clients and servers.

                  It must be something in the access point when it's in access point mode. It's interesting that it works at all in router mode because that implies it's passing the discovery packets through NAT. Probably using some sort of helper proxy.

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gblenn @Fandangos
                    last edited by Gblenn

                    @Fandangos Thanks for the schematic and the details about the model of the router. And it appears that the TPLink router has an "AP Mode" which turns off NAT, DHCP and parental control. But the manual doesn't seem to be specific about how to physically connect it to the LAN (second router as they say).

                    Which of the blue and orange ports have you connected it with?

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      Fandangos @Gblenn
                      last edited by

                      @Gblenn

                      The first orange port.

                      Just switched DHCP off on TPLINK router. DLNA is still working.

                      I guess IGMP snooping is needed? This router actually has a settings for IGMP version 2 and 3 to switch from.

                      johnpozJ G 2 Replies Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @Fandangos
                        last edited by johnpoz

                        which router is this exactly? I do not see any model number given..

                        So if dhcp server is off on the wifi box.. Your clients are going to die off when their lease expires if its in router mode.. And I am with Steve on this - your saying its passing dlna traffic between its wan and lan in router mode? That is insane!!! And horrible horrible thing for them to do on their part.

                        Don't put it in AP mode - as I mentioned turn off its dhcp server and connect it to your network with one of the lan ports.

                        igmp snooping between its wan and lan is horrible horrible feature.. The only thing igmp snooping should be used for would be between say its guest wifi and and lan, or between different wifi networks..

                        There would be no point to igmp snooping if all the devices, ie AP were on the same L2..

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          Fandangos @johnpoz
                          last edited by

                          @johnpoz said in DLNA discovery doesn't work:

                          which router is this exactly? I do not see any model number given..

                          It's a tplink ec220-g5

                          So if dhcp server is off on the wifi box.. Your clients are going to die off when their lease expires if its in router mode.. And I am with Steve on this - your saying its passing dlna traffic between its wan and lan in router mode? That is insane!!! And horrible horrible thing for them to do on their part.

                          I'm not saying anything about WAN <> LAN.

                          I'm saying that dlna servers from the unraid server that is connected to the unamanged switch which is connected to the tplink ec220 in router mode, with dhcp enabled, do show up if using something like BubbleUPnP or USB Audio Player. I can see Mini DLNA server.

                          And I wasn't able to this with the router in access point mode.

                          Don't put it in AP mode - as I mentioned turn off its dhcp server and connect it to your network with one of the lan ports.

                          igmp snooping between its wan and lan is horrible horrible feature.. The only thing igmp snooping should be used for would be between say its guest wifi and and lan, or between different wifi networks..

                          There would be no point to igmp snooping if all the devices, ie AP were on the same L2..

                          Different wifi networks? Might be the case, this router is dual band, so I have some devices on 2.4GHz and 5GHz wifi networks on the same router.

                          The conclusion I'm getting is that access point mode is bugged because it should pass everything, no exceptions, to Pfsense and the traffict between devices on the unmanaged switch should work.

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            When you are using the ec220 in router mode though is it connected using it's WAN?

                            F 1 Reply Last reply Reply Quote 0
                            • F
                              Fandangos @stephenw10
                              last edited by

                              @stephenw10

                              No.
                              Wan port disconnected.

                              Lan port connected to the unmanaged switch

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Hmm, OK. Weird then!

                                Something in the access point mode config must be causing a problem. And, I agree, client isolation seems most likely.

                                1 Reply Last reply Reply Quote 0
                                • johnpozJ
                                  johnpoz LAYER 8 Global Moderator @Fandangos
                                  last edited by

                                  @Fandangos said in DLNA discovery doesn't work:

                                  so I have some devices on 2.4GHz and 5GHz wifi networks on the same router.

                                  It is possible that without igmp snooping it might not pass traffic between those 2 networks, but if they are the same network it should really. Or maybe it doesn't pass multicast to the lan without snooping on from any wireless network.

                                  But yeah you can leave it in router mode if your just not using its wan port and turn off its dhcp.. That is manual AP mode ;)

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • bmeeksB
                                    bmeeks
                                    last edited by bmeeks

                                    It is quite possible the Wi-Fi access point will not automatically pass multicast traffic from the LAN to wireless LAN clients (even when they are in the same L2 network). This is frequently purposefully done to prevent multicast traffic from using up all the available wireless transmission slots and slowing down the wireless network unnecessarily.

                                    With IGMP Snooping enabled, only the specific wireless LAN clients subscribing to the multicast stream are sent the multicast packets over the RF link.

                                    johnpozJ 1 Reply Last reply Reply Quote 1
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator @bmeeks
                                      last edited by johnpoz

                                      @bmeeks yup very possible - but that is a bad way to do it implement it IMHO.

                                      Unifi does it the other way, you can disable sending the multicast - but out of the box it does.

                                      control.jpg

                                      What is more likely for typical user - go looking for settings to make something like dlna or any other discovery something that is done via multicast work.. When they have no understanding on the how the underlying protocol works or is suppose to work.

                                      Or someone with understanding say - hey I have zero use for this, let me turn it off.

                                      But maybe I am mistaken - maybe those multicast settings are on by default, and I turned them off.. wifi iot stuff like light bulbs love to send broadcast, and if you disable it - they tend to not function ;) At least not optimally.

                                      Also a typical home setup prob not going to have 100s of devices - a handful of devices sending multicast or broadcast while no such traffic is not great for wifi performance, unless your talking a lot of clients it shouldn't be an issue. Which is another reason I would think such controls should be off by default and enabled by the admin of the network if they deem it of benefit to the overall performance of the network.

                                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                                      If you get confused: Listen to the Music Play
                                      Please don't Chat/PM me for help, unless mod related
                                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        Gblenn @Fandangos
                                        last edited by

                                        @Fandangos said in DLNA discovery doesn't work:

                                        @Gblenn

                                        The first orange port.

                                        Just switched DHCP off on TPLINK router. DLNA is still working.

                                        I guess IGMP snooping is needed? This router actually has a settings for IGMP version 2 and 3 to switch from.

                                        Yeah, well that's not the one you should be using. That is the WAN port and whenever using a router as an AP, you need to shift the cable over to the LAN side.
                                        Using it as an AP basically means that you turn it into a switch, only incorporating the LAN ports and wifi. You also need to turn off DHCP of course since now you are on the same network as pfsense.

                                        To be able to manage it and change wifi channels, passwords and SSID's, you can keep the static IP you have already assigned it, since it is on the same subnet as pfsense.

                                        After shifting the cable, I'm pretty sure that it will start working as you intended.

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          Fandangos @Gblenn
                                          last edited by

                                          @Gblenn

                                          I am not using the wan port. I'm using the first lan port.

                                          The dhcp in the print is for the lan. This router comes with pppoe preset for the wan side and I haven't touched it.

                                          It's actually working now, with dhcp off.

                                          G 1 Reply Last reply Reply Quote 0
                                          • G
                                            Gblenn @Fandangos
                                            last edited by

                                            @Fandangos said in DLNA discovery doesn't work:

                                            I am not using the wan port. I'm using the first lan port.

                                            Ok perhaps I found pictures from a different model router than the one you have. The one I found had one orange and four blue ports.
                                            But that's good, you need to be connected to one of the LAN ports. And even though some routers these days have an "AP Mode", all you really need is to turn off DHCP to make it function as an AP.

                                            So I guess, problem solved right?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.