Raspberry Pi2 as Server for Webradio

Discussion of all things Raspberry Pi / Raspberry Pi 2 related

Moderators: MattKingUSA, khz

Post Reply
kingHarald
Posts: 1
Joined: Tue Feb 09, 2016 4:23 am

Raspberry Pi2 as Server for Webradio

Post 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
chalee
Established Member
Posts: 29
Joined: Fri Dec 13, 2013 12:17 am

Re: Raspberry Pi2 as Server for Webradio

Post by chalee »

Yes,

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!


http://icecast.org/docs/icecast-trunk/

http://icecast.org/faq/

more: https://en.wikipedia.org/wiki/Dynamic_DNS

http://www.pcwelt.de/ratgeber/DynDNS-Al ... 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!

;-)
chalee
Established Member
Posts: 29
Joined: Fri Dec 13, 2013 12:17 am

Re: Raspberry Pi2 as Server for Webradio

Post by chalee »

Also mixxx is a great dj- and radiostreaming-software for all platforms that comes with 2/4 Players and an icecast-plugin:

http://www.mixxx.org/manual/latest/chap ... sting.html

http://www.mixxx.org/
chalee
Established Member
Posts: 29
Joined: Fri Dec 13, 2013 12:17 am

Re: Raspberry Pi2 as Server for Webradio

Post by chalee »

I tried last night to test an icecast-streaming-server with mixxx in QStudio64 (Linux Mint 17.3 MATE 64bit, http://mayastudio.tumblr.com/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):

EXAMPLE FOR OGG-STREAMING:
------------------------------------------------------

- install icecast2

Edit:

Code: Select all

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

set

mountpoints:

Code: Select all

 /live.ogg

Important:

Code: Select all

localhost
or:

127.0.0.1.



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


- MIXXX

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

Icecast2

ogg (or mp3)

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

localhost

or:

127.0.0.1.

--> CHECK THAT EVERYTHING IS THE SAME LIKE IN ICECAST.XML!

--------------------------------------------------------------------------------------------------------------------------

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

---------------------------------------------------------------------------------------------------------------------------


Enable icecast as a service:

Type:

Code: Select all

gksudo pluma /etc/default/icecast2
and set

ENABLE=false

to

ENABLE=true



Start your icecast-streaming server:

icecast2-commands:

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:

type:

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: adress.dyndns.org:8000/live.ogg

or connect with YOURIP:8000/live.ogg

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

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



more information: http://icecast.org/docs/

de: https://wiki.ubuntuusers.de/Icecast2/

https://www.mixxx.org/manual/latest/cha ... sting.html
Last edited by chalee on Sun Feb 12, 2017 8:32 pm, edited 2 times in total.
chalee
Established Member
Posts: 29
Joined: Fri Dec 13, 2013 12:17 am

Re: Raspberry Pi2 as Server for Webradio

Post by chalee »

The Ubuntu Mate 16.04 LTS is available as a special Rasberry Pi-version:

https://ubuntu-mate.org/download/

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..)
Post Reply