Which firewall ports have to be open for a DLNA client running on Ubuntu?
I use different DLNA servers, ie bubbleupnp, minidlna & rygel however they all suffer the same issue.
So I wrote a program that takes care if it. You may find it useful, I've tested with Rhythmbox but not totem, if you fancy giving it a go let me know whether it worked for you.
It basically monitors your DLNA programs and opens the ports they require subject to a few appropriate limitations.
The script can be downloaded here
Update: I've loaded Rhythmbox and enabled the Grilo package and I can access other DLNA servers on the LAN without any problems. The DLNAAutoAddPorts.sh script takes care of opening the required ports.
Use the command: Sudo lsof -i -n -P | more
This command lists the Application Name, PID, User, IP version, Device ID and the Node with Port Name. It shows both TCP and UDP.
- To view only TCP connections use:
sudo lsof -i tcp -n -P | more
- To view only UDP connections use:
sudo lsof -i udp -n -P | more
- If you don't have the command available use this command to install lsof:
sudo apt-get install lsof