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:
<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.
Dear friend your tuto is very hlpful but my ip change from time to time what should I do?
Submitted by abaz (not verified) on Tue, 30/01/2007 - 21:53.You can use a service like dyndns.org to have a dynamic hostname.
Submitted by Stavros on Wed, 02/05/2007 - 22:02.—-
Vidi, Vici, Veni.
Hi i just sent you a request pls i need to start a fm radio station for abt 5000 listerner to start wiz.
Submitted by Abu (not verified) on Thu, 26/04/2007 - 01:53.Now what would be good is a web embeded media player thats easy to configure and plays on Windows/Linux/etc. Any suggestions? Preferably non-java based?
Submitted by james (not verified) on Sat, 27/05/2006 - 05:37.Hmm, try VLC?
Submitted by Stavros on Sat, 27/05/2006 - 11:39.—-
Vidi, Vici, Veni.
Head over to dynebolic.org and download the dyne:bolic 2.1 Live CD. It's a Linux Live CD designed for audio/video applications and streaming; has the low-latency kernel hacks, jack, and lots of software for audio/video.
Submitted by Anonymous (not verified) on Tue, 18/07/2006 - 21:02.Everithing appear to works but when i press play on winamp, oddcast disconnect from Icecast server...
Submitted by oneiros (not verified) on Sat, 27/05/2006 - 13:11.ok well it seems that eventually the feed will open, but when going to my radio it seems like it wants to download all the content instead of just streaming... i had to go for about 150mb before winamp opened and started playing the feed....?
Submitted by Anonymous (not verified) on Sat, 27/05/2006 - 16:29.go through the configuration file again and make sure EVERY password is changed, not just the admin or another one. That fixed mine.
Submitted by Anonymous (not verified) on Wed, 19/07/2006 - 01:02.Hi! You really helped me to create my radio station but i have one really BIG problem! (2 problems, sorry)
1. How can people connect to my radio station. I have an idea (in winamp): File => Play URL ! Is it right?
2. If I let people try to connect (with Play URL), it keeps trying (connect...) but it doesn't finish. They can't connect to my server & can't hear the music!!
One more question:
Can I let it work in mp3? If it's possible: how??
Thank you for the response!!! Greetingz,
Submitted by Keyser (not verified) on Sat, 27/05/2006 - 19:13.Keyser
1. Yep, that's it.
Submitted by Stavros on Sun, 28/05/2006 - 01:36.2. You probably have a firewall or NAT of some kind, check your network setup.
3. Select Mp3 instead of Vorbis in the Oddcast DSP preferences (I have mentioned this in another comment).
---
Vidi, Vici, Veni.
Hey, sorry for being such a n00b at this but what would I allow if I had a firewall up? I'm having the same #2 problem in the above post.
Submitted by Anonymous (not verified) on Sun, 28/05/2006 - 23:34.You'd allow port 8000 so people can connect to you. Unfortunately, if you're behind a NAT and don't know it, there's not much you can do to fix it.
Submitted by Stavros on Mon, 29/05/2006 - 11:48.---
Vidi, Vici, Veni.
Yeah, but there is no Mp3 in the Oddcast DSP preferences. I only have Vorbis etc ...
Submitted by Keyser (not verified) on Wed, 31/05/2006 - 14:52.There is in mine, maybe you haven't installed the codec for it. Rerun the installation and check MP3 I think?
---
Submitted by Stavros on Wed, 31/05/2006 - 15:03.Vidi, Vici, Veni.
Sorry for this...
So you're using your home computer as a server?
Thanks.
Submitted by Kacy (not verified) on Sat, 27/05/2006 - 23:48.Yep.
Submitted by Stavros on Sun, 28/05/2006 - 01:36.---
Vidi, Vici, Veni.
Hey :) do I need Vorbis to make this work?? I have done everything that is in the tutorial but don't have them coloured bars in oddcast. can you please tell me why??
Submitted by Brighty (not verified) on Sat, 01/07/2006 - 11:19.i'm having the same problem. i can't see the colored bars in oddcast. i can't figure out how to fix it. help?
Submitted by Anonymous (not verified) on Thu, 12/10/2006 - 20:33.Now everithing seems to work, but none can connect to my server, when tried they gone Timed Out...
Submitted by oneiros (not verified) on Sun, 28/05/2006 - 09:58.I switched off all my nat and firewall on the adsl/router, but still not working, i tried on another connection with a simple modem, still not working...
Any idea?
Ok, i repeated everithing again, and i resetted the router parameters...
...finally it works!
^_^
Submitted by oneiros (not verified) on Wed, 31/05/2006 - 11:36.My brother have tried to connet in VLC player but it will not work, do you have any idea what it can be?
Submitted by Marc (not verified) on Sun, 28/05/2006 - 16:38.One of my freinds try to connet i winamp as the way: File=>Add URL.. but didnt work... so what can I do?
Submitted by Marc (not verified) on Sun, 28/05/2006 - 17:07.make sure your firewall/nat is set up to let the connection come in.
Submitted by Anonymous (not verified) on Fri, 14/07/2006 - 22:18.I read the tutorial and its indeed working at least for a whil i do get the stream via my laptop but after 15 second it starts the same song again and agai nand again the stream is not continuingi can listen to the stream for 15 seconds and then starts over very boring i might add is there something i did wrong ?
Submitted by STG24T (not verified) on Wed, 31/05/2006 - 00:38.Hey i installed it and test it on another computer in my network, works great
Submitted by Sil (not verified) on Thu, 01/06/2006 - 14:47.But ! i use my own ip adres that i have from the router.
What ip adres do people outside my house use? the same ip or the ip adres from the router?
"You can now tell people to connect to http://[yourip]:8000/stream.ogg with their players, and that's all there was to it. Happy DJing."
Submitted by james (not verified) on Sun, 04/06/2006 - 11:43.I folowed all steps.... but when someone try to conect to the radio conecting.... and conecting.... but they never see there player connected to my radio... i dont have any firewall or NAt.. PLS HELP
ps: i tryd to connect myself with windows media player and it works.. i didnt tryed from another pc yet
Submitted by cmad (not verified) on Fri, 14/07/2006 - 21:57.[http://81.181.170.86:8000/stream.ogg]
go to www.whatsmyip.com and use the IP shown
Submitted by Anonymous (not verified) on Fri, 14/07/2006 - 22:19.i followed the steps that u have gave and im using mp3 ive only got a windows firewall and i carnt connec to my radio my friend tried to on his computer and he couldnt (he hasnt got a firewall or anything else ) can u help me o give me a few pointers were to look for help
Thanks alot
Submitted by Seza (not verified) on Tue, 30/01/2007 - 23:07.I need to know what a local host is.
Submitted by Anonymous (not verified) on Wed, 07/06/2006 - 03:15.I have a problem with playing it. I have it all set up and congiured and it is connected perfect.
But, when I go to the adress 'http://24.154.23.226:8000/stream.MP3'
Nothing happens! And if i go to http://24.154.23.226:8000/stream.ogg nothing happens either!
I set it to MP3 format, so I suppose it is the first url whihc will work when its fixed.
But, I dont know why it wont work. I'm just using my own personal computer, with my internet IP, and thats what I'm supposed to do right? And I have it set as port 8000, so why wont it work for me?
PLEASE HELP!
If you respond, also email me support@digi-petz.com so I know when some one does.
Thanks.
This Tutorial is great BTW
Submitted by Ben Thomas (not verified) on Fri, 09/06/2006 - 17:38.u dont stream.ogg after just go to this then click listen http://24.154.23.226:8000/
Submitted by Anonymous (not verified) on Sat, 10/06/2006 - 18:10.Ok, I found that my router had messed it up. I set it to port 50, so it is now "http://24.154.23.226:50"
How ever I have it configured and such, but when i click on the listen, it opens somhting and nothing plays from it, even though i have music broadcasting in winamp.
If I set Oddcast to MP3, should the mountpoint be "/stream.mp3"?
Submitted by Anonymous (not verified) on Sun, 11/06/2006 - 17:34.Never mind. I got it work! How ever, when i speak in my microphone it messes up the connection for the person listening...
Submitted by Anonymous (not verified) on Sun, 11/06/2006 - 17:48.Ive got everything pretty much set up, i think, but when i play a song nothing shows up in the icecast statistics and the peak meter shows nothing, whats wrong?
Submitted by Sly99 (not verified) on Sun, 11/06/2006 - 21:07.Icecast is fixed, how do i turn the peak meter on?
Submitted by Sly99 (not verified) on Sun, 11/06/2006 - 21:17.How can you set up other people to be djs for your radio without them having to go through everything? Also why do you need to set up the mod password?
Submitted by Sly99 (not verified) on Sun, 11/06/2006 - 21:18.just press on it and it will be turned on
Submitted by Miky (not verified) on Sun, 18/06/2006 - 01:27.Probelm with connecting...I done all the steps made sure I did them right too...but when I go to connect to the station it says timed out...http://68.186.170.121:8000/stream.ogg is that the right link I should be using?
Submitted by Anonymous (not verified) on Tue, 13/06/2006 - 21:35.I followed the insgtructions on how to set up a wabradio. Everything looks fine except i cannot play any music via the brouwser. I get asked to download a file: stream.ogg. And this takes ages
What i am i doing wrong or how can i get the brouwser to play ? I am sure i miss something basic but what ?: url is http://localhost:8000/stream.ogg
Submitted by dees on Thu, 15/06/2006 - 10:00.You can now tell people to connect to http://[yourip]:8000/stream.ogg (if you don’t know your IP, visit http://www.whatismyip.com/) with their players.
Not with your browser.
—-
Submitted by Stavros on Thu, 15/06/2006 - 11:05.Vidi, Vici, Veni.
Great tutorial you have here and everything works fine for me but when i try to connect from my freinds computer it asked me to download a file which never finishes downloading. It does the same on my own computer but when i use this url:http://localhost:8000, it brings a page with icecast2status. Please help me on the issue of this downloading a file thing that never finishes.
Another question, how many listeners can the current connection support?
Submitted by onlinemoney (not verified) on Sun, 13/08/2006 - 14:46.awesome tutiorial i have been searching on the net like a dog to get a nice tutorial on setting up a net radio
i think i have done all written in tutorial
but when i open the url of my radio it opens a file which never finished downloading....
i have tried url
http://localhost:8000/stream.ogg
and
http://221.134.63.56:8000/stream.ogg
but never works can you please help me out :]
thanks in advance
email :raghavsey@msn.com
Submitted by fos (not verified) on Thu, 31/05/2007 - 07:48.heres a ss
Submitted by Raghav (not verified) on Tue, 05/06/2007 - 09:13.http://img407.imageshack.us/my.php?image=helpag9.jpg
What's wrong with that? It looks like it's working fine to me.
Submitted by Stavros on Tue, 05/06/2007 - 10:44.---
Vidi, Vici, Veni.
whenever i open
http://localhost:8000/stream.ogg
or
with my ip in windows media player etc
it doesnt play the file.....
and if i try to open it in a browser it opens a file which never finishes downloading.....
Submitted by Raghav (not verified) on Wed, 06/06/2007 - 06:13.You can get it from your own computer by just going to http://localhost:8000/
Mine works from that but I still can't get to it from any other computer.
Submitted by Anonymous (not verified) on Wed, 19/07/2006 - 02:04.Do i have to change the mountpoint and the url to /stream.mp3 if i have configured the encoder type to MP3 Lame?
Submitted by Lullaby (not verified) on Sun, 18/06/2006 - 21:23.like...
http://[yourip]:8000/stream.ogg
to
http://[yourip]:8000/stream.mp3
No, the mountpoint is specified in the config file. The name remains the same regardless of the format (well, unless you manually change it).
Submitted by Stavros on Sun, 18/06/2006 - 22:06.---
Vidi, Vici, Veni.