Page 1 of 1

Raspberry Pi2 as Server for Webradio

Posted: Tue Feb 09, 2016 4:29 am
by kingHarald
Hello, hello!

For hours and hours i'm trying to get a little radio station running via raspberry pi, mpd and icecast2. I can access the station locally, but from public internet there is just no way, the stream will not open. I tried portforwarding, fixed IP adresses... slowly im getting out of ideas. Maybe someone is here who knows about networking, webradio via icecast and the pi?

Thanks in advance!

Great forum by the way, lot of interesting topics, i will see tomorrow but am now too tired :D

Re: Raspberry Pi2 as Server for Webradio

Posted: Fri Feb 10, 2017 11:19 pm
by chalee

you should try to use a dyndns-hoster and configure your router with it!

Every fritzbox got this option!

You will choose and get a adress for your actual ip and can give it to people!

the dyndns-service recognize your actual IP (of your router) everyday

Replace your choosen IP-Adress with your dyndns-adress and so your stream is reachable (from outside)!

Check that your Port-Rewarding is set correctly and that the firewall of your pc is NOT blocking the stream!

Better to leave it off!

I think there is something wrong - because with your right IP (of the router) the stream has to work!

more: ... 80355.html

Also you have to know the laws in your country IF you make public-streaming!

Just to give it to some friends is legal in most countrys!

But to make it available for all and listed you have to inform yourself:

It could be really expensive.

Privatly: what kind of music or program do you want to stream?

Just give a note, if you keep it running!


Re: Raspberry Pi2 as Server for Webradio

Posted: Sat Feb 11, 2017 12:28 am
by chalee
Also mixxx is a great dj- and radiostreaming-software for all platforms that comes with 2/4 Players and an icecast-plugin: ... sting.html

Re: Raspberry Pi2 as Server for Webradio

Posted: Sat Feb 11, 2017 4:52 pm
by chalee
I tried last night to test an icecast-streaming-server with mixxx in QStudio64 (Linux Mint 17.3 MATE 64bit, )

And it was really easy and great to make it work!

With dyndns-services you will get reachable from outside- otherwise you need to give your IP-Adress in the link...

Here are some tips that may help you (too):


- install icecast2


Code: Select all

gksudo pluma /etc/icecast2/icecast.xml
Set passwords!



Code: Select all



Code: Select all


NOTE: Don't change too much in the beginning
- so you don't get errors while "over-config"
the icecast.xml!


mount: /live.ogg or /live.m3u (mp3) #set same in icecast.conf!


ogg (or mp3)

user: source (!) pw: #given in icecast.conf





- Portforwarding Port 8000 in Router! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Enable icecast as a service:


Code: Select all

gksudo pluma /etc/default/icecast2
and set




Start your icecast-streaming server:


Code: Select all

sudo /etc/init.d/icecast2 start # start icecast
sudo /etc/init.d/icecast2 stop # stop icecast
sudo /etc/init.d/icecast2 restart # restart icecast
sudo /etc/init.d/icecast2 reload # reload config
- connect Mixxx witth icecast2

- stream your music!


check your stream: http://localhost:8000/admin/stats.xsl

If you have problems allow icecast in hosts:


Code: Select all

gksudo pluma /etc/hosts.allow
and write/paste:

icecast: ALL
icecast2: ALL

Take dyndns-adress (!)

to be reachable from outside, e.g:

or connect with YOURIP:8000/live.ogg

–> use .m3u ( /live.ogg.m3u ) at the end of adress

to make your ogg-stream more compatible to most players!

more information:

de: ... sting.html

Re: Raspberry Pi2 as Server for Webradio

Posted: Sun Feb 12, 2017 8:23 pm
by chalee
The Ubuntu Mate 16.04 LTS is available as a special Rasberry Pi-version:

I have not test it - but it should be possible to install icecast2 and mixxx there with apt

and so (in 2017) it should be possible too for webradio.

Other way is to use darkice or other streaming clients with no gui together with icecast on Pi!?

(i know, this is an older thread - but maybe the information helps another..)