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:
Cheap Server Host

To stream to loads of people for not much money, check out UltraStream who offer support via MSN, so if you're having trouble they'll walk you through getting set up, bit by bit, which is really cool :)

Submitted by Anonymous (not verified) on Sat, 21/07/2007 - 01:38.
Probs

its a good tut but i turned mic on and fine then when i turn mic off it crashes

Submitted by Anonymous (not verified) on Sat, 18/08/2007 - 11:38.
i done everything it says

i done everything it says its streaming in the encoder
but when i try to listen on another comp it will not connect why?
the stream is http://202.126.97.252:8000/stream.ogg or it could be http://localhost:8000/stream.ogg both of them don't work see if they work on anyones comp

thanks

Submitted by aaron (not verified) on Thu, 27/09/2007 - 03:57.
I done everyting it says.....

copied your ip address into another media player and didn't hear anything. Are you still broadcasting.

I am having the same problem, how did you resolve this problem. Any advice would be much appreciated

Submitted by N Shadow (not verified) on Fri, 21/03/2008 - 21:04.
my

but i'ts not working he said disconnectid

Submitted by Anonymous (not verified) on Tue, 11/12/2007 - 18:41.
Radio station

Right,

if you cant get your radio station to work, then try fiddling with it like i did... Soon i got mine working when i fiddled with it. Dont moan on the forums for peoples help, because then your proving that your a tard and dont know what to do. Read tutorials or go to

http://winamp.com

and download the DNAS server and the plugin for winamp, then double click it load your server then your plugin in winamp then play your music and your radio station is ready to go for people to listen.

type in your web browser

http://localhost:8000

then see if your radio is online or not.

So try that, or if you need help from me, E-mail me at

ojashurst@hotmail.co.uk

Hope this helps !

Regards

Owen.

Submitted by Big help to you (not verified) on Mon, 17/03/2008 - 10:18.
needs to no

what law is there and is there a fee to dj online please let me no thanks tons

Submitted by tina (not verified) on Sun, 30/12/2007 - 22:01.
an internet station that uses sam broadcaster

http://beatproject.blogspot.com/
here is a link to my own personal tutorial that has been developed through using this tutorial and my own knowledge and experience.
http://beatproject.blogspot.com/

hope this helps as much as intended!!

DjWaYnoS

Submitted by DjWaynos@drupal.org on Thu, 20/03/2008 - 15:49.
How do i get people to listen?

I want to tell my friends about my radio station but dont know what to tell them to search...could you help me please? Great tutorial btw! =] xx

Submitted by Tahlia (not verified) on Mon, 14/04/2008 - 21:29.
Need Help

hi i have it all runing but when i type in http://localhost:8000/stream.ogg it tells me to download something is that right??? please write back thank you

Eddy =]

Submitted by Eddy (not verified) on Sun, 27/04/2008 - 15:32.
Erm, sorry.

Ignore my last comment.

Another thing, is this legal, or do I need licensing?

Submitted by Bichiliad (not verified) on Fri, 09/05/2008 - 00:56.
a problem

when i give the link with my ip for ex : http://xx.xxx.48.125:8000/stream.ogg the user don't stop downloading... he dl all songs until i stop my radio... what i can do ? pls this is my mail: bloody_me90@yahoo.com if somebody can help me... pls write , thx

Submitted by Anonymous (not verified) on Fri, 04/07/2008 - 00:13.
Running on a webserver

Is there a good way to set this up to run from a webserver, rather than a home computer?

Submitted by David (not verified) on Tue, 23/05/2006 - 02:11.
Yes, thats what I'm looking

Yes, thats what I'm looking for as well.

Submitted by Anonymous (not verified) on Tue, 23/05/2006 - 06:00.
Re: Webserver

I assume you mean running it on a host, and not under Apache or a similar webserver. You can do it, just get the Linux version of Icecast and configure and run it (I haven't tried it, so I don't know the exact steps, but I suspect the config file is the same and you just start it from the command line), and specify the hostname to connect to in the DSP. Make sure you have permission from the host to do that, because it can get you banned rather quickly.
---
Vidi, Vici, Veni.

Submitted by Stavros on Tue, 23/05/2006 - 09:41.
Good point, that sounds like

Good point, that sounds like it should work. Thanks.

Submitted by Anonymous (not verified) on Wed, 24/05/2006 - 04:23.
Icecast server is included

Icecast server is included in Ubuntu universe (multiverse?) packages :o
According to apt-cache, you should get icecast2 and ices2 packages if you want ogg. I'm going to investigate how to do all of this from the command line.

Oh, and I presume when people way "webserver" they mean "shared hosting". If you have a shell account, you can probably download the software into your home directory and run it from there, after checking your TOS of course :P. If you have a really nice sysadmin or you have a sweet hosting package, they might install it / have it already installed and available for everyone.

Submitted by Anonymous (not verified) on Tue, 18/07/2006 - 20:31.
webserver

Is there a good way to set this up to run from a webserver, rather than a home computer? i use on webserver ,pls reply me

Submitted by mrweb on Tue, 20/06/2006 - 13:36.
EMBEDD>>>>>>>>>>>>>>

Is there Anyway I Cn EMBEDD A Player (WMP, Real Player, .WinAmp) Onto My Site, So People Dont Have To Open Anything?????????

Submitted by Anonymous (not verified) on Sat, 07/07/2007 - 14:27.
OMG!!!!!!!!!!!!!!!!!!

Is This Even Legal In The UK!?!?!?!?

I Told It Wasnt But If You Pay For Radio Hosting You Can Download The Songs Of Limewire Legally, WTF!!

So, Bk To My Question, Is This Legal

Submitted by Dj. Ocky! (not verified) on Tue, 10/07/2007 - 15:24.
radio station with SAM 2

any one do this but with SAM broadcaster 2 and can you set up one on webhosting?

Submitted by Anonymous (not verified) on Thu, 20/12/2007 - 13:57.
Hye this is really great

Hye this is really great tutorial but can u make another tutorial how to broadcast video? More like internet tv :)

Submitted by Anonymous (not verified) on Tue, 23/05/2006 - 02:28.
Re: Video

Thanks :) I don't really know how broadcasting video works (it should work much the same way, but I don't know the programs to use), so I can't help you there :/
---
Vidi, Vici, Veni.

Submitted by Stavros on Tue, 23/05/2006 - 09:39.
HELP

Its a great tutorial, but i have one problem... on my pc i can listen to my music no problem, also streaming with wmp. but no other pc can connect to it. i tried it with my laptop, no luck. i kow i forwardt my firewall correctly and even with it turned off, i have the same problem. Please HELP

Submitted by zero_cool (not verified) on Mon, 29/10/2007 - 13:30.
RE: Hye this is really great

"Hye this is really great tutorial but can u make another tutorial how to broadcast video? More like internet tv :)" --by some dumbass

Hye this is really great tutorial but can u make another tutorial how to make marijuanna brownies?

Submitted by Captain Badass (not verified) on Tue, 23/05/2006 - 11:26.
Broadcast Video with Myth

Install MythTV (http://www.mythtv.org) and you'll get MythWeb for free, which allows you to broadcast stream video.

Submitted by fishdan (not verified) on Tue, 23/05/2006 - 14:56.
VLC is the best media player

VLC is the best media player ever built, and it has a built in streaming engine. You can try that.

Submitted by Obsydian (not verified) on Tue, 18/07/2006 - 20:32.
VLC rocks

VLC will stream both video and audio very effectively. I've used it many times and it works marvelously well. Just be sure to RTFM though, it's not for n00bs.

Submitted by Anonymous (not verified) on Wed, 19/07/2006 - 00:22.
iTunes?

Can somebody maybe give me directions on making internet radio using iTunes instead of WinAmp? I have all my music in iTunes so it would be a lot easier...

Submitted by Anonymous (not verified) on Tue, 23/05/2006 - 19:33.
Although this wouldn't be a

Although this wouldn't be a streaming radio station, I've seen a "hack" where one installs a personal vpn (http://www.hamachi.cc/ - Hamachi is a very simple one), and then uses iTunes' built in streaming to listen to to their music.

Couple of downfalls though - You have to have both Hamachi and iTunes installed on both machines, which doesn't make it easy to listen to your music on other people's computers.

Pros - Hamachi will do a lot more, including letting you share your own files and anything else you'd be able to do on your own home network.

Alternative - Pandora.com - Very cool website. I'll let it speak for itself though.

Submitted by Anonymous (not verified) on Wed, 24/05/2006 - 21:44.
If you're asking this

If you're asking this question, go dig a ditch and lay in it. Download Winamp. Open Winamp[Afer install of course.]. Press Ctrl+P. Go to Media Library>Local Media. Click on the Watch Folders tab. Click Add Folder. Select your iTunes directory[Usually C:\Documents and Settings\Insert_Your_Name_Here\My Documents\My Music\iTunes]. Click on Rescan Now. 10 minutes later, close winamp. Open Winamp.

Depending on how much music you have the 10 minutes should have been adequate. If the Winamp Library doesn't have all your iTunes music: Press Ctrl+P. Go to Media Library>Local Media. Click on the Watch Folders tab. Click on Rescan Now.

Submitted by Anonymous (not verified) on Wed, 19/07/2006 - 03:34.
damn

damn...i can;t make this radio work...i mean...i did everything right but the encoder doesn't seem to connect..:-<(connecting in seconds....)i've seen that there are few more persons with the same problem but...

Submitted by crackhead (not verified) on Tue, 19/06/2007 - 16:52.
Re: Connecting.

Are you sure the samplerate and the rest of the settings are what they are in the screenshots? It should connect fine.
---
Vidi, Vici, Veni.

Submitted by Stavros on Tue, 19/06/2007 - 17:08.
Commercial software to do this

To stream in MP4 (the iTunes format) to your iTunes player you could use Backbone Radio.

Submitted by Anonymous (not verified) on Wed, 25/10/2006 - 07:49.
Ahhm, sorry, but I'm sort of

Ahhm, sorry, but I'm sort of clueless here. I'm trying to connect, I've just added the Ogg Vorbis encoder in Oddcast, and when I try to connect, it won't and says "encoder init failed"

Help?

Submitted by Anonymous (not verified) on Tue, 23/05/2006 - 21:59.
Re: Encoder

Hmm, I have no idea why that happens. Make sure you have added all the necessary DLLs while installing oddcast (i.e. that you haven't unchecked anything).

---
Vidi, Vici, Veni.

Submitted by Stavros on Tue, 23/05/2006 - 22:54.
Thanks!

Oh, yep. I tried re-installing Oddcast, and I guess I must have missed the checkbox next to the Ogg DLL.

Thanks for the help!

Submitted by Anonymous (not verified) on Tue, 23/05/2006 - 23:26.
Oh...hmm. Sorry to be such a

Oh...hmm.

Sorry to be such a trouble, but I seem to have yet another problem. Icecast doesn't seem to want to recognize Oddcast...

Submitted by Anonymous (not verified) on Tue, 23/05/2006 - 23:34.
Re: Icecast

Check that the configuration file is correct, the problem is probably there.
---
Vidi, Vici, Veni.

Submitted by Stavros on Wed, 24/05/2006 - 00:02.
i cant get my host

it dosent work no one can listen to me iv tried putting my ip adress in to the url http://localhost:8000/stream.ogg
but nothing happents it juast says cannot connect can you help me plz

Submitted by Anonymous (not verified) on Sun, 27/05/2007 - 09:30.
I cant connect locally

Great tutorial.. I have an mp3 playing from winamp; oddcast and connected to icecast. but when i go to test the stream in WMP using http://localhost:8000/stream.ogg.. i get an error. I can't get the stream using my ip either. Any advice would be great. Thanks

Submitted by Jamie (not verified) on Fri, 01/06/2007 - 05:57.
Re: WMP

Try Winamp, I'm not sure that WMP supports ogg...
---
Vidi, Vici, Veni.

Submitted by Stavros on Fri, 01/06/2007 - 07:51.
Wonderful

Hello Poromenos, all I can say is that you have made it so simple!
I always wanted to run streamer on my system to share music, but google'ing some time back revealed only complicated answers!
Thanks a ton for sharing this. I've now bookmarked your page for regular visits!

-regards,
AtulT.

Submitted by AtulT (not verified) on Wed, 24/05/2006 - 03:36.
Is it just me?

I cant find "DSP/Effect" in winamp.... can I PLZ get some help.... it will be very nice...

Submitted by Me? (not verified) on Fri, 26/05/2006 - 14:44.
Re: Preferences

Press ctrl+P and click "DSP/Effects"
---
Vidi, Vici, Veni.

Submitted by Stavros on Fri, 26/05/2006 - 15:55.
Radio

the feed doesen't work on my friends computer. windows media player gives an error

Submitted by Mike (not verified) on Sat, 27/05/2006 - 00:01.
opening

having problems people going to my address, it just says to open file and never stops downloading....

also my icecast source level stats show the stream/ogg but in the right window with statistics and value dont have any items listed as where the walkthrough shows content listed there.... help?

Submitted by ROME (not verified) on Sat, 27/05/2006 - 02:24.
Re: Opening

Hmm, I have no idea. The walkthrough is like 3 steps, what did you do wrong? :P
---
Vidi, Vici, Veni.

Submitted by Stavros on Sat, 27/05/2006 - 11:38.
my friend is downloading the

my friend is downloading the file from my page, but it doesnt seem to stop, do you know how big is the file or you have some info about this? or maybe a better way for my friends to listen to it?

Submitted by Anonymous (not verified) on Thu, 10/08/2006 - 06:43.
Re: WMP

WMP might not be able to play Vorbis files, try Winamp.
---
Vidi, Vici, Veni.

Submitted by Stavros on Sat, 27/05/2006 - 11:38.

Comment viewing options

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

Ads