I have successfully installed Mopidy. On a Raspberry Weezy. it runs very well local, from this device…
I would like to change the port of my Mopidy to 8055, My web server is running on port 80; and a weatherstation on 8050;
Then I can stream my music at port 8055, for running on a raspy in my car.
And then I come to the second question, how can I stream Mopidy to Intenet.
I am a full noob, and dutch.
Thanks in advanced
This is not supported in PiMusicbox so you’ll have to come up with your own solution.
Edit the following line and change the port.
if [ "$INI__network__workgroup" != "" ]
#change smb.conf workgroup value
sed -i "s/workgroup = .*$/workgroup = $INI__network__workgroup/ig" /etc/samba/smb.conf
#redirect 6680 to 80
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 6680 > /dev/null 2>&1 || true
#check networking, sleep for a while
while [ "$MYIP" == "" -a "$INI__network__wait_for_network" != "0" ]
if [ $LOOP_COUNT -gt $LOOP_LIMIT ]
And edit this line to add your extra ports to the firewall exceptions:
:INPUT DROP [1:72]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [15:2194]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
# samba 137, 138 UDP (netbios-ns), 139 (TCP, smb) 445 (TCP, microsoft domainservice)
# SSH: 22
# HTTP(s): 80, 443
# DNS: 67, 68
# zeroconf: 5353
-A INPUT -p tcp -m multiport --dports 22,80,139,443,445 -j ACCEPT
-A INPUT -p udp -m multiport --dports 67,68,137,138,5353 -j ACCEPT
# Mopidy: 6600 (MPD), 6680 (HTTP)
# DAAP: 3689
# RTSP: 554
-A INPUT -p tcp -m multiport --dports 554,6600,6680,3689 -j ACCEPT
-A INPUT -p udp -m multiport --dports 554 -j ACCEPT
Thank you for your very clear explanation.
But port 8055 would open my Mopidy on the internet, where I would “see” my Mopidy with a MiFi in the car.
I work with a Raspiberr 2 and Mopidy 1.1.2 version.
I found the file
Pimusicbox / pimusicbox / blob / develop / filechanges / opt / musicbox / startup.sh
Not, but yes
Opt / musicbox / startup.sh
Iptables -t night -A PREROUTING -p tcp --dport 8055 -j REDIRECT -to-port 6680> / dev / null 2> & 1 || True
#iptables -t night -A PREROUTING -p tcp --dport 80 -j REDIRECT -to-port 6680> / dev / null 2> & 1 || True
Pimusicbox / pimusicbox / blob / develop / filechanges / etc / firewall / musicbox_iptables # L13
Etc / firewall / musicbox_iptables # L13
#daap: 3689 TCP
#samba 137, 138 UDP (netbios-ns), 139 (TCP, smb) 445 (TCP, Microsoft Domain Service)
Web server 8055, 6680
#mpd 6600 554 rtsp, airplay
If all this succeeds, that integrates into this in my website.
If it does not work, I’m grateful to you
Sorry for the bold letters. I cpoyed out of Notepad. It is not my intension to shout. Sorry.
But more important, it WORKS,
The rest is up to me, embeded in my website.
So I will embeded “local-mopidy-ip:8055” into my site.
Advandage => It works on 80 AND 8055
A very greatfull Ivan FLO
one little issue, the music plays local…
But with VLC-Streamen schould that be no problem,… I think.
I was thinking, hence my headache, actually I do not have to have an Internet Radio Raspberry at home!
Linking another raspberry (with HAT) to stream to my car.
And with a hawei mifi, I have music everywhere …
The best solution is sometimes the simplest.
Additionally, I have an SDR-RTL running on an Odroid, I receive the Belgian channels …
Thank you everyone who read the post and helped thinking.
I do not even need my Odroid RTL-SDR.