Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Which ports must be allowed for DLNA/UPNP?
#1
Hello,

I notice that when my software firewall is enabled, the "Play using..." entry in Kodi's context menu is not displayed, and I therefore cannot cast any media to my TV. Does anyone know the minimal set of incoming ports I need to allow through the firewall to get it working again? I have tried allowing incoming UDP 1900, but it looks like that is not enough.

Thank you!
Reply
#2
(2024-01-26, 16:04)halfproxy Wrote: Hello,

I notice that when my software firewall is enabled, the "Play using..." entry in Kodi's context menu is not displayed, and I therefore cannot cast any media to my TV. Does anyone know the minimal set of incoming ports I need to allow through the firewall to get it working again? I have tried allowing incoming UDP 1900, but it looks like that is not enough.

Thank you!

There is no standard for UPnP / DLNA DMP, DMS or DMR listening ports. Worse yet some use dynamic ports like Kodi and others use static ports like Plex, Mezzmo and Jellyfin.

The UDP port 1900 supports the SSDP protocol which communicates the service, connection string and similar so clients and servers can talk to each other.

You have two options I can think of, use Kodi's debug with UPnP component logging enabled. Second, install the Mezzmo Kodi addon, let it discover all UPnP devices on your network (will log to kodi.log ) and then you can uninstall afterwards.

Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#3
(2024-01-26, 19:17)jbinkley60 Wrote: You have two options I can think of, use Kodi's debug with UPnP component logging enabled. Second, install the Mezzmo Kodi addon, let it discover all UPnP devices on your network (will log to kodi.log ) and then you can uninstall afterwards.

If I disable the firewall on the PC that is running Kodi, Kodi is able to discover (or maybe the other way around?) my TV. Are you saying I can somehow persist this information so that it will continue to work across reboots and with the firewall enabled?

Is there a way to set static ports for Kodi?
Reply
#4
(2024-01-26, 23:55)halfproxy Wrote: If I disable the firewall on the PC that is running Kodi, Kodi is able to discover (or maybe the other way around?) my TV. Are you saying I can somehow persist this information so that it will continue to work across reboots and with the firewall enabled?

Is there a way to set static ports for Kodi?

I am saying that i don't know for sure the answer to your question as to whether the listening port is static or dynamic.  When you disabled the firewall Kodi was able to discover your TV, which is the listener.  The good news is that worked.  Next is to determine the port being used.  I don't know how Kodi logs UPnP connection string info (which has the port) without enabling debug and UPnP component logging.  I can for the Mezzmo Kodi addon because I author it.  The connection info is clearly logged.

Anyway,  if you want to try Kodi debug with the firewall off and then try a Play-To you might be able to see the info in the logs.  One thing with UPnP is that the SSDP discovery process is on a timer (typically 30 minutes or less).  To determine whether it is dynamic or static you'll want to get the info from the logs, turn the TV off (you might consider unplugging it since the network stack may stay live during a  power off) , wait say an hour, turn it back on and try again.  This is a bit extreme   but should answer the static / dynamic question.

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply

Logout Mark Read Team Forum Stats Members Help
Which ports must be allowed for DLNA/UPNP?0