This version is for Arm routers: RT-AC56U, RT-AC68U, RT-AC87U...
A) SERVER SIDE
1a - Install Optware from here
or
1b - Install Entware (recommended) from here
2 - Install Debian from here
3 - Install Minidlna from here
4 - Enter Chrooted Debian
5 - Run update to see if some recent packages are available
apt-get upgrade
6 - Install zip package
7 - Download and install Oracle Java 7
cd /usr/lib/jvm/
wget -c -O java.tgz https://bit.ly/2xZTeV9
tar xvzf java.tgz
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/ejre1.7.0_71/bin/java" 1
update-alternatives --set java /usr/lib/jvm/ejre1.7.0_71/bin/java
8 - Download and install BubbleUPnP Server
cd /etc/bubbleupnp
wget https://bubblesoftapps.com/bubbleupnpserver/BubbleUPnPServer-distrib.zip
unzip BubbleUPnPServer-distrib.zip
chmod +x ./launch.sh
9 - Start server
10 - Wait about a minute to download and start, then exit with CTRL-C
11 - Download startup script and allow wan configuration
chmod 755 /etc/init.d/S99bubbleupnp-debian
sed -i 's/false<\/allowWANConfigurationUI>/true<\/allowWANConfigurationUI>/g' "/etc/bubbleupnp/configuration.xml"
12 - Exit Debian
13 - Stop chrooted services
14 - Add BubbleUPnP to chrooted services list
echo "S99bubbleupnp-debian" >>/opt/etc/chroot-services.list
chmod 755 /opt/etc/chroot-services.list
15 - Open default BubbleUPnP ports
Paste this lines in terminal
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 58050 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 58051 -j ACCEPT
16 - Apply rules
sh /jffs/scripts/firewall-start
17 - Start services again
18 - Go to 192.168.1.1:58050 and wait about 30 seconds, default Username Admin & password admin if asked, now press ok on both messages
B) CLIENT SIDE
Download BubbleUPnP app on your android phone
Open app and go to Menu/Settings/Setup network wizard/NEXT/
Give server a name
In Server address input your external ip or ddns address, like user.asuscomm.com:58050
Then Login and password chosed in server setup
When finished, press NEXT
Now you should see Connection successful
Go to Menu/LIBRARY and should see a list with available servers
Choose one server and a RENDERER from top
Go to Menu/Media and play your media files from selected server on selected Renderer