How to create an internet radio station


If you’ve ever wondered how internet radio stations work and/or wanted to create your own, this tutorial will show you how. It is actually very easy, and you can set up your own radio station and begin broadcasting songs in about 10 minutes.

First of all, let me give you a quick rundown on how it works. You have your music player (I will use Winamp, get it if you don’t have it) and you play your music as you normally would. You probably need a fast internet connection so you can broadcast without buffering occuring. Through a plugin (which you will download and install), Winamp will send the music you play to the broadcasting server (which can be on your PC or on another one with a larger connection), and the server sends the music to the listeners, reencoding it to a better format, if you are so inclined. Note that the amount of listeners you will be able to support is limited by your outgoing bandwidth and the bitrate of the song you are streaming, so if you’re streaming at 128 kbps and you have 256 kbps upload bandwidth, you’ll obviously be able to support 256/128 = 2 listeners.

The programs I use are Winamp for playing, oddcast DSP for broadcasting to the server and Icecast for serving. You can use Winamp’s own Shoutcast plugin and server, but I prefer to broadcast in Vorbis because it’s smaller and has much better quality than MP3.

Let’s get started, then. Download Icecast from this page (you presumably want the Windows version) and install it. Run it and click “Edit configuration” in the “Configuration” menu. A notepad window will pop up with various configuration options. My configuration is this:

<icecast>
    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-on-connect>1</burst-on-connect>
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <source-password>hackme</source-password>
        <relay-password>hackme</relay-password>
        <admin-user>admin</admin-user>
        <admin-password>hackme</admin-password>
    </authentication>

    <hostname>localhost</hostname>
    <listen-socket>
        <port>8000</port>
    </listen-socket>

    <fileserve>1</fileserve>


    <paths>
        <basedir>./</basedir>

        <logdir>./logs</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
        <logsize>10000</logsize> <!-- Max size of a logfile -->
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>

You can copy it and paste it in the open notepad window (the one with the configuration), but make sure you change “hackme” to more secure passwords. Once you have done this, save the file and close the window. Click the “Start server” button and the listboxes below should be populated with various information, like this:

Your server is now ready for people to connect to it, but there’s no music playing, so let’s tend to that. Download oddcast for Winamp from this page and install it. Now, run Winamp, go to the “DSP/Effect” section of the preferences and click on “oddcast DSP v3”. You should see the oddcast window pop up, looking something like this:

Click on “Add encoder” and a new encoder will be added in the box below. Right-click on it and select “configure”. A dialog will pop up, asking for various information. For “Encoder type” select “OggVorbis” (or MP3, if you are so inclined), this will make you stream in Vorbis. Some people might not be able to have the available codecs if they’re running a very old version of their player (all newer players worth their salt support Vorbis).

For “Quality” I have entered -2, it is the lowest quality, giving you about 30 kbps bitrate and very acceptable quality. You can experiment with 0 or 2, going over 6 is overkill in my opinion (since 6 is what I use to archive music from my CDs), and you will be able to support more listeners if you have lower bitrate for the song.

For “Server IP” enter the IP of the server you’re running Icecast on (it’s “localhost” if you’re running it on your own PC). “Server port” is whatever you entered in the configuration, 8000 if you used mine, and “Encoder password” is hopefully something other than “hackme”. I also use mono, because my connection only has 128 available upstream bandwidth and it doesn’t sound too bad. It should now look like this:

Click OK here and then click “Connect”. If you did everything right, the encoder should now connect to Icecast and begin streaming, like so:

If you want to do a voiceover (speak in your radio) just click the Live Recording button and it will broadcast anything that you say in the microphone (or whatever you enter as the input device). Click on it again to return to your normal music (I haven’t actually tested this, if there are any problems just comment here).

The “Source Level Stats” section of Icecast should also change to include your stream, and will look something like this:

Try connecting with another player (not the one playing the songs) to http://localhost:8000/stream.ogg (e.g. for Winamp click Open URL). If that connects and plays, everything is set up correctly. You can now tell people to connect with Winamp or whatever player they use (and NOT WITH AN INTERNET BROWSER) to http://[yourip]:8000/stream.ogg (if you don’t know your IP, visit http://www.whatismyip.com/, or see the “Client address” in the “Details” tab of your Local Area Connection if you want to stream on a LAN) with their players, and that’s all there was to it.

If you get a permission error under Vista, swamplingman suggested that you give your user full permissions for the Icecast and Winamp folders. That should solve the error.

Note: Before you broadcast any music, make sure you have the right to do so, otherwise you could be breaking the law of your country. Also, if you are having connection problems, you are probably behind a NAT or a firewall that does not allow other people to connect to your computer. To clarify, you (from your internal network) can only connect to your station using your internal IP (192.168.0.1 or whatever) and people from the internet can only connect to you using the IP from whatismyip.com and only if you have forwarded port 8000 corrrectly. Ask your network administrator or visit www.portforward.com for help, as these problems are outside the scope of this tutorial.

Tags:
Thanks for your answer

Hello

Thanks for your answer,i make the setting with LAN adress,and now the problem is:in Winamp,on other computer,i make the settings"Open URL......",and in Winamp appear"Connecting"/connecting to host...and is all,nothing happens.
What is the problem???!!What can i do???
Thanks in advance for your answer.GS

Submitted by GS (not verified) on Sat, 05/05/2007 - 09:14.
Re: Connecting

I don't really know, I've never had this happen before...
---
Vidi, Vici, Veni.

Submitted by Stavros on Sat, 05/05/2007 - 10:50.
How it's big stream.ogg ?

How it's big stream.ogg ?

Submitted by Anonymous (not verified) on Sat, 12/05/2007 - 16:18.
I cannot connect

Ok I fallowed this to a T 2 times I started over oddcast v3 keeps on disconnecting.. So what did I miss? Thanks for the tut.. and thanks for any replys..

Submitted by DTR (not verified) on Tue, 22/05/2007 - 03:28.
Help please

Hi,no mp3 in decoder selection..also how do you stream the music?

Peter

Submitted by peter (not verified) on Thu, 24/05/2007 - 20:15.
can't get it going

Ok I fallowed this T many times and tried on 3 machines I started over oddcast v3 keeps on disconnecting.. So what did I miss? Thanks for the tut.. and thanks for any replys..

Submitted by Antonio (not verified) on Thu, 24/05/2007 - 20:28.
Re: Disconnecting

Hmm, I don't know, I'll try it again. Maybe it's incompatible with the new versions...
---
Vidi, Vici, Veni.

Submitted by Stavros on Thu, 24/05/2007 - 21:15.
help please

Hi,when you go to yourip:8000/stream.ogg then people will list to a live stream.is this correct also how i install the mp3 encoder.

Peter

Submitted by rickyreter on Thu, 24/05/2007 - 21:41.
i dont understand how to get

i dont understand how to get people to connect any1 want to elaborate?

Submitted by DJDaveB (not verified) on Sat, 26/05/2007 - 01:55.
How do I get it to work for MP3

I have downloaded the lame dll but I cannot get it installed in Winamp. What am I doing wrong. When I unzipped the file, I sent it to the Winamp main file but it didn't show up there and I am not sure how to get it installed. Thanks for the simple tutorial.

Submitted by plblythe (not verified) on Sat, 26/05/2007 - 14:55.
Re: MP3

I think you just drop it in the Oddcast directory. The oddcast installer tells you exactly what to do, you just copy it to the right place and it works. Check the installer to see what this place is.
---
Vidi, Vici, Veni.

Submitted by Stavros on Sat, 26/05/2007 - 15:08.
Linux and my own root server

Hi is it the same set up for Linux or do i have to download a different version of icecast I have a root server with unlimited Bandwidth remote from the studio thanks for the excellent tut

Submitted by Pully (not verified) on Mon, 28/05/2007 - 15:06.
Re: Linux

I haven't tried it, but it should be the same, sans the ui. Just paste the config and everything else should work as is.
---
Vidi, Vici, Veni.

Submitted by Stavros on Mon, 28/05/2007 - 17:55.
help

Hi,theres no mp3 in dsp ..also can you use the mic while the music is in the backgroud..as it cuts music out.
Peter

Submitted by peter (not verified) on Wed, 30/05/2007 - 15:43.
everytime i try to connect

everytime i try to connect it says "encoder init failed" help please

Submitted by DAN (not verified) on Wed, 30/05/2007 - 23:47.
help with: http://localhost:8000/stream.ogg?????

When I put that into the adress bar a download screen comes up. Then i save what i talked into the mic onto my desktop play it in winamp. And then what???Help
Thanks

Submitted by mh (not verified) on Thu, 31/05/2007 - 02:51.
can you please help me ive

can you please help me ive downloaded everything but it wont connect on the oddcastv3 one and the peak meter is swtched off can you tell me how to swich it on and also the most biggest problem WHEN IT WAS CONNECTED I COULND CALL IT UP ON MY INTERNET Y IS THIS PLEASE ????

Submitted by mark (not verified) on Thu, 31/05/2007 - 10:05.
Re: Help

You're doing something wrong, it should be able to connect fine. You're not giving me much info there, try the steps in the tutorial and it should work.
---
Vidi, Vici, Veni.

Submitted by Stavros on Thu, 31/05/2007 - 17:37.
HELP PLEEAAAASSSSSEEEEEE

I log on to http://localhost:8000/stream.ogg and it just comes up with HTTP 404 Not Found like it does when it dosen't recognise a website i really need help.i followed your instructions really carefully.

Submitted by peter j (not verified) on Fri, 01/06/2007 - 21:52.
Re: Lots of yelling

It just dawned on me… You guys are trying to connect to the stream using a web browser, aren’t you? Well, I did not see that coming. Tutorial amended.
—-
Vidi, Vici, Veni.

Submitted by Stavros on Fri, 01/06/2007 - 22:06.
How to add music?

You gave the tutorial on how to setup the radio station and speak on it as well. Where do you go to add the music and get it to play, need details...? Thanks!

Submitted by Brian (not verified) on Mon, 04/06/2007 - 13:36.
re: add music?

You Need To Download WinAmp

You Haven't?

Download From The Link In The Tutorial

You Have?

Then You Play Music Through WinAmp, You Juz Open Media Just Like Your Listening To It, But As You Listen To It, It Will Broadcast What Your Listenin To ;)

Hope This Helps

Submitted by Dj. Ocky! (not verified) on Sat, 07/07/2007 - 14:33.
radio station link

hi ive got my radio station done now can you tell me were i can find my radio link for other people to listen to

Submitted by dj_sloopy on Mon, 04/06/2007 - 17:35.
Wow it's working. And it wil

Wow it's working. And it wil also playing with asx!! But, it plays on Itunes, but not on Wmp! Why???

Submitted by erik (not verified) on Mon, 11/06/2007 - 14:31.
Re: Working

Hmm, I don't know, WMP probably doesn't support Vorbis...
---
Vidi, Vici, Veni.

Submitted by Stavros on Mon, 11/06/2007 - 15:27.
Streaming from a server ?

Hello.

Firstly, excellent tutorial. I haven't actually tried it yet, but you have explained it beautifully.

Well, I had this small query. I need to start a web-site which will play songs that have been recorded at my studio ( Yeh, I own a studio ). Now, however, I do not want to stream music from my local PC since my ISP is as good as 5#it and keeps on disconnecting. So, is there any way that I could store mp3 files on a web-hosting server of mine and could those be streamed ?

Or is there any other way ?

THanks

Submitted by Preshit (not verified) on Sat, 16/06/2007 - 04:31.
Re: Server

As other people have said in the comments, you could run the streaming server on your webhost and use their bandwidth to stream (most webhosts won't allow it, but there are a few comments about hosts that will, slicehost.com being the one I recommended). That would require you to send the stream to the server once, and then you could have as many listeners as the server has bandwidth. Of course, there are also dedicated streaming servers you could sign up at.
---
Vidi, Vici, Veni.

Submitted by Stavros on Sat, 16/06/2007 - 05:13.
Jw, why ice cast REcieves

Jw, why ice cast REcieves bytes but wont send them, i figure this works like an internet connection, if ur sending your connected if your only recieving then your dissconnected. so why does my sent bytes stay at 0?

Submitted by Kira (not verified) on Sat, 16/06/2007 - 22:45.
not connect

hi i did all thins correct but anther user cant access the radio
pls chk it my id is

http://122.164.188.101:8000/stream.ogg

sudhan

Submitted by sudhan (not verified) on Tue, 19/06/2007 - 10:47.
other player

how can i play other player like Real player ect using this id

http://122.164.188.101:8000/stream.ogg

sudhan

Submitted by sudhan (not verified) on Tue, 19/06/2007 - 10:49.
radio tutorial

hi
I have pasted your code but nothing happened no client change the same as default any ideas

Submitted by jacob1979 on Thu, 21/06/2007 - 07:07.
peak meter

i dont have a peak meter.... it says is off

Submitted by Anonymous (not verified) on Fri, 22/06/2007 - 05:50.
RE: peak meter

Where It Says: peak meter off

Click There On That Text, And It Comes On, I Had Same Problem

Hope This Helps ;)

Submitted by Anonymous (not verified) on Sat, 07/07/2007 - 14:30.
icecast2

okay, great tutorial, it's easy and understandable, but i have a problem. I copied tha code in Icecast config, and i started the server. According to your image i shoud have some values of 1 , but instead of that all my values are 0. Sources, Source_total_connections, Source_client_connections, Clients, Connections they should be 1, but they're all 0. Why is that ?

Submitted by Hass (not verified) on Sun, 24/06/2007 - 09:20.
Cannot connect

Hello

I have dont all tutorial. I am using Winamp. The problem connection faild no source define from icecast

http://172.18.10.112:8000/
please check

Submitted by muskamal on Tue, 26/06/2007 - 09:39.
Yes I would like to know how

Yes I would like to know how can other people listen to the broadcasting

Submitted by Anonymous (not verified) on Thu, 28/06/2007 - 01:43.
Stops playing when song changes?

Yeah, this is a brilliant tutorial, it works pretty well, however, as the subject suggests, whenever the song changes, the client's streaming connection stops, and they have to reopen it to continue listening.

Which kinda sucks, anyone know how to solve this? (hoping this place isn't dead)

Thanks for any help you can give.

Submitted by Neon Knight (not verified) on Thu, 28/06/2007 - 18:05.
Re: Stops

That's probably in the client configuration or a plugin error, because it shouldn't happen.
---
Vidi, Vici, Veni.

Submitted by Stavros on Thu, 28/06/2007 - 19:54.
Ah, okay.

Any idea of how to resolve this? I followed your tutorial exactly...

Submitted by Neon_Knight (not verified) on Thu, 28/06/2007 - 22:02.
Re: Bug.

Hmm, no, I haven't had anything like this happen, especially when the song changes... I have no idea.
---
Vidi, Vici, Veni.

Submitted by Stavros on Thu, 28/06/2007 - 22:07.
Oh...

Oh, hmm. It's odd, I can't find it anywhere on google apart from one place where no solution was found.

Ah well, I suppose it's shoutcast for me.

Submitted by Neon_Knight (not verified) on Thu, 28/06/2007 - 22:10.
couldn't find ODDcastv3 window

I down loaded the oddcastv3 to my hard drive and the pop window didn't pop up

Submitted by yasunglass on Thu, 28/06/2007 - 21:51.
Is There Any Way I Could

Is There Any Way I Could Possibly Make My Radio Station Play Without Listeners Having To Open A Player, Is There A FREE Web Hoster That I Can EMBEDD A Player Onto My Page So Users Can Listen Online?????

Submitted by Dj. Ocky! (not verified) on Sat, 07/07/2007 - 15:38.
Radio Station

Mine connects but the .ogg never downloads, it juss' says it's downloadin'..... So noone can ever listen...

-Merch™

Submitted by Merch (not verified) on Thu, 05/07/2007 - 00:59.
Need Alill help Please=)

the question is that everything is running fine but what is my link to my radio?
i followed the instractions properly like the example >
my-ip-in-here:8000/stream.ogg
dosn't work. Can someone please help me with this or give an example of how yours is.
i also thing i have to change somthing in my Oddcast/Matadate/Edit but dont know what so someone Could u please help me out here
Thank You!

Submitted by Anonymous (not verified) on Sat, 07/07/2007 - 15:30.
stream downloads as a file... not plays: a SOLUTION !!!

hello.... well as far as I have worked with this field of internet media, if you put the link to the browser and it starts downloading without stopping, is a basic error and the file does not stream.

Well.. in Icecast, when you put .m3u (or .pls i think) at the and of the stream file, it would normally "recognised" from your pc as a media file, so it would play in a player (maybe the default player for this file)... So, if .m3u (this means it is a "music playlist file") or .pls is on your stream URL (in Icecast2 it is automatically done, so you don't need any further configuration) then it would play!!

Example:
#1
stream URL: http://[your-server-IP]:8000/stream.ogg
alternate URL (alias to your file, but plays automatically):
http://[your-server-IP]:8000/stream.ogg.pls
http://[your-server-IP]:8000/stream.ogg.m3u

#2
stream URL: http://[your-server-IP]:8000/stream.mp3
alternate URL (alias to your file, but plays automatically):
http://[your-server-IP]:8000/stream.ogg.mp3.m3u

~~RECOMMENDED: You can configure players (e.g. WMP) on your computer as a listener to play automatically m3u files, on a .m3u file, right-click -> properties -> opens with player...

I hope I helped!!!
Keep streaming dudes! :)

Submitted by myAegeanStudentCommunity--DevTeamMember (not verified) on Fri, 07/09/2007 - 23:56.
Re: Solution

Hmm, interesting. Does this work for anyone? The .pls file should be an actual playlist, so I don't know if this can fool the browser into thinking that it is one and pass it to the player. Nevertheless, thanks for the tip, someone should try it out and tell us if it works.
---
Vidi, Vici, Veni.

Submitted by Stavros on Sat, 08/09/2007 - 00:30.
Downloaded Oddcast v.3 and pop up error message appears

What the heck?

Submitted by Home Computer IP User (not verified) on Mon, 09/07/2007 - 12:09.
I'm Confused

OK, so when I went to configuration I wanted MP3Lame so the settings read:
Birate 128
Quality -2
Samplerate 44100
Channels 1
Encoder Type MP3Lame
Server Type Icecast2
Server IP localhost
Server Port 8000
Encoder Password (******)
Mountpoint /stream.ogg
Reconnect Seconds 10
I clicked OK, then clicked connect. It said connected. I noticed in Icecast2, it didn't show any stats. Then I tried my URL on my computer and my other computer and they both didn't work. I have music playing, so what's the problem? When I entered the URL, I had to retype everything and my URL is http://24.4.56.186:8000/stream.ogg. Is that the wrong one? Please help!
Thanks

Submitted by Joey (not verified) on Tue, 10/07/2007 - 04:19.
which version of winamp

which version of winamp should i download.

Submitted by Anonymous (not verified) on Sat, 14/07/2007 - 20:44.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Ads