<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>svebee (English) &#187; sam broadcaster</title>
	<atom:link href="http://en.svebee.com/tag/sam-broadcaster/feed" rel="self" type="application/rss+xml" />
	<link>http://en.svebee.com</link>
	<description>Something about everything...</description>
	<lastBuildDate>Tue, 02 Jun 2009 14:05:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Internet Radio &#8211; ShoutCast</title>
		<link>http://en.svebee.com/46/internet-radio-shoutcast</link>
		<comments>http://en.svebee.com/46/internet-radio-shoutcast#comments</comments>
		<pubDate>Sun, 03 May 2009 14:36:15 +0000</pubDate>
		<dc:creator>svebee</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[internet radio]]></category>
		<category><![CDATA[sam broadcaster]]></category>
		<category><![CDATA[shoutcast]]></category>

		<guid isPermaLink="false">http://en.svebee.com/?p=46</guid>
		<description><![CDATA[
In this tutorial, I&#8217;ll describe how to set-up your own internet radio streaming &#8211; you&#8217;ll send information (songs/voice/whatever&#8230;) from your computer to a server (which you have bought), which will foward the songs further to your radio listeners. Also, I&#8217;ll describe how to make a form on your web-server (web-site) which will show what is [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/shoutcast.gif" alt="Internet Radio – ShoutCast – SAM Broadcaster"/></p>
<p>In this tutorial, I&#8217;ll describe how to set-up your <strong>own internet radio streaming</strong> &#8211; you&#8217;ll send information (songs/voice/whatever&#8230;) from your computer to a server (which you have bought), which will foward the songs further to your radio listeners. Also, I&#8217;ll describe how to make a form on your web-server (web-site) which will show what is currently playing, what&#8217;s next, most popular songs, formular for requests (visitor request some song &#8211; and radio <strong>automaticly </strong>plays it) and so on (a playlist).<span id="more-46"></span></p>
<p style="color: red"><strong>WARNING: First do ALL WITHOUT No-IP.com, and when you&#8217;re done and everything is OK, then back to the first steps and do with No-IP.com static Host.</strong></p>
<p style="font-size: 1.5em; border-top:1px dashed black; border-bottom:1px dashed black"> Neccessary:</p>
<li>Paypal account (for server paying)</li>
<li>SAM Broadcaster v4.2.2</li>
<li>Web-server (classic with support for PHP and MySQL databases); access to Cpanel</li>
</ul>
<p style="font-size: 1.5em; border-top:1px dashed black; border-bottom:1px dashed black"> Rent/buy a ShoutCast server/hosting</p>
<p>First of all, you need to buy a ShoutCast server which will &#8220;serve customers&#8221; (because for most of people, the normal upload speed at home is only enough for about 3-5 people simultaneuosly). I have tried a very good and cheap one (if you order by yourself without <strong><a href="http://en.svebee.com/contact">contacting me</a></strong>, you&#8217;ll pay a few times more) for hosting (no bandwidth limit), so if you&#8217;re interested &#8211; <a href="http://en.svebee.com/contact"><strong>contact me</strong></a>. I have written this tutorial based upon that host, so some of pictures are connected with it.</p>
<p>When you have contacted me, I will refer you to a good &#038; cheap hosting site and when you  have paid them, they will give you information for the server in the following form:</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/01.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/01_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Go on <strong><a href="http://www.streampanel.biz/">www.streampanel.biz</a></strong> and log in.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/02.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/02_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Click on <em>Server Management – Manage</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/03.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/03_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Change <em>Admin Password</em> and <em>Password</em>. Also write down <em>Port Base</em>. At the bottom write down <em>Public name</em> – name of your Radio Station. After you fill them all &#8211; click on <strong>Update</strong>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/04.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/04_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>After that click on <strong>Start </strong>- server will start up.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/05.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/05_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/06.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/06_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p style="font-size: 1.5em; border-top:1px dashed black; border-bottom:1px dashed black">MySQL database</p>
<p>After you bought your ShoutCast server, the first thing you must to do for your &#8220;radio programme&#8221; is to allow connections to (MySQL) database on your website. Because, in our case, the database is neccessary for the correct working of the SAM Broadcaster &#8211; with it we list our songs on website, send <em>requests </em>and similar. So, go to the Cpanel on your website &#8211; mostly it&#8217;s <em>www.yourwebsite.com/cpanel</em>.</p>
<p>Log in and then click under category <strong>&#8220;Databases&#8221;</strong> on <strong>&#8220;Remote MySQL&#8221;</strong>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/07.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/07_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>In the given box, you must type in the <strong>IP address</strong> which will connect to the database on your website (it must be YOUR IP address). If you want, you can type in your current IP address (find it on <strong><a href="http://www.whatismyip.com/">www.whatismyip.com</a></strong>) but I don&#8217;t recommend that because if your radio station will be online more than 24 hours &#8211; your (mostly dynamic) IP address will <strong>change</strong>. There are offers for static IP addresses, but for us that&#8217;s too expensive. There is a solution for this problem. Go to <strong><a href="http://www.no-ip.com/">www.no-ip.com</a></strong>, create your account and log in. In your member area click on <strong>&#8220;Add Host&#8221;</strong>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/08.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/08_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>At <strong>Hostname:</strong> type in your future (static) &#8220;IP address&#8221;, that address will &#8220;act&#8221; as your real IP address. There are many names reserved, so be creative. On the right-hand side you can choose the &#8220;form&#8221; of your address &#8211; pick what you like. At <strong>&#8220;Host Type:&#8221;</strong> leave it as it is (<em>DNS Host (A)</em>). At IP Address ,probably it will automaticly write your current IP address. If not, type it yourself (you can find it at the right upper corner). <strong>&#8220;Assign to Group:&#8221;</strong> leave as it is. Click on <strong>&#8220;Create Host</strong>&#8220;.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/09.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/09_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Address will be created.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/10.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/10_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Next step, you must download a little piece of software which will be installed on your computer and which will contact the server when your (dynamic) IP address is changed &#8211; so it will be (again) &#8211; <em>mojradio.no-ip.info</em> (in our case). Program can be download at the following <strong><a href="http://www.download.com/No-IP-DUC-Dynamic-DNS-Update-Client-/3000-2165_4-10055182.html?tag=lst-1">address</a></strong>. Install it and run. Log in with your account (on No-IP.com) and your address will be automaticly added  &#8211; <em>mojradio.no-ip.info</em>. All you need  do is click on it so the smiley will be &#8220;shy&#8221; (red cheeks).</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/11.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/11_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>After that just leave it in <em>Tray</em>.</p>
<p>After you have created your static IP address (Host), you must type in the estimated field in your Cpanel &#8211; under <strong>Remote MySQL</strong> type it in and click on <strong>Add</strong>. Address is added.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/12.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/12_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p><strong>WARNING: </strong>Temporarily allow access to your dynamic (real) IP address (example: 42.131.43.234) &#8211; after you run program (SAM Broadcaster) you can remove it. If you turn off the program, in the meantime your IP address change, so you won&#8217;t be able to run it (database error), so then you must have you real IP address allowed in Cpanel.</p>
<p>After that, make the database for your &#8220;radio station&#8221;.  Go on Cpanel and click on <strong>MySQL Databases</strong>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/13.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/13_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Create new database (whatever name; in our case it will be <strong>tzruscom_mojradio</strong>) and assign it user with <strong>ALL PRIVILEGES</strong> &#8211; in our case that will be <em>tzruscom_testna</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/14.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/14_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Your database created.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/15.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/15_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p style="font-size: 1.5em; border-top:1px dashed black; border-bottom:1px dashed black">SAM Broadcaster (v4.2.2)</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/16.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/16_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Now we move on &#8220;main&#8221; part &#8211; installation of SAM Broadcaster programme. Open up installation file (<em>sambc-up.exe</em>) and installation will begin.</p>
<p>Click on <em>Yes</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/17.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/17_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Click on <em>Next</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/18.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/18_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Click on <em>Accept</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/19.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/19_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Click on <em>Next</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/20.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/20_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Choose<strong> MySQL</strong> and click on <em>Next</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/21.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/21_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Choose <strong>Specify custom settings</strong> and <strong>Remote serve</strong>r. At <strong>username </strong>type in user name of database (in your Cpanel) &#8211; in our case that&#8217;s <strong>tzruscom_testna</strong>. At <strong>password </strong>type in password of that user, and at <strong>Database type</strong> in name of database which will be for your radio station (<strong>tzruscom_mojradio</strong>). At Host type in domain of your website (<strong>without WWW!</strong>). Leave the Port setting as it is (<em>3306</em>).</p>
<p>Click on <em>Next</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/22.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/22_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>The program should be successfully installed (if some error occurs, if something you did went wrong &#8211; allow access to database, check for wrong typing of username/password and similar) and it will generate tables in database.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/23.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/23_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>After that type in serial key for program activation:</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/24.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/24_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Run program (all people with version &#8220;from net&#8221; must deselect all, put &#8220;update&#8221; and then they can run program).</p>
<p>Program should load up and pop-up windows for importing songs (Media Library) and <strong>SoundFX </strong>module. Both, leave as they are (selected) and click <em>&#8216;Continue&#8217;</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/25.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/25_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Now, you should wait for a little while (for communication with the server), and after that you can choose a directory (some) of your songs &#8211; choose and click on<em> OK</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/26.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/26_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p><strong>SAM Broadcaster</strong> will import the songs (if you have many songs, I reccomend importing in pieces because if you import one huge directory of music, the program can freeze), wait till it has finished importing (<strong>Q:</strong> Why is it so slow??<strong> A:</strong> Because there is neccesary communication between your (home) computer and server, and (probably) your speeds (upload speed) are a little slow (~512kbps)&#8230;</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/27.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/27_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>and there is first screen of your program.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/28.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/28_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>At left side there is a list of your imported songs &#8211; under <strong>Playlist &#8220;Tracks&#8221;</strong>. At <strong>Queue </strong>there is list of songs that are ready to be played on the radio, <strong>History </strong>- history of your played songs and <strong>Voice FX</strong> &#8211; microphone settings (you can turn on microphone and press <strong>Press to Talk</strong> and speak <strong>LIVE </strong>at your Internet radio).</p>
<p>Click on <strong>Desktop B</strong> and click on <strong>+</strong> (plus) at <strong>Encoders</strong></p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/29.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/29_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Choose <strong>MP3 </strong>(if you need <strong>128kbps</strong> encoding) or mp3PRO for 64kbps or lower. We will use <strong>128kbps</strong> (as our ShoutCast server which we bought &#8211; allows it) and click on <em>OK</em>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/30.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/30_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>At Format choose <strong>128kb/s, 44,1kHz, Stereo</strong>.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/31.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/31_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Click on <strong>Server Details</strong> and at <strong>Server Type</strong> select (if it isn&#8217;t already) &#8211; <strong>ShoutCast</strong>. At <strong>Server IP</strong> type in IP of your server (you can see it on <em>www.streampanel.biz</em> after you log in) &#8211; in our case <em>208.53.138.125</em>. At <strong>Server Port</strong> type in port which you get (in our case) <em>8757 </em>- you can check it at <strong>Server Managment – Portbase</strong>. At <strong>Password</strong>, type in the password of your server (you can see it/change at <em>Server Management &#8211; Manage</em>). At <strong>Station name</strong> type in the name of your radio station, at <strong>Genre </strong>- type of your music, <strong>Website URL</strong> &#8211; site of radio station and click on <em>OK </em>(if you want you can fill up <em>AIM/ICQ/IRC</em> <em>Channel </em>fields).</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/32.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/32_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>After that click right click on <em>Encoder </em>and click on <strong>Start </strong>(or select and then press F9).</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/33.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/33_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Program should successfully connect and write <em>&#8220;Encoded (time), streamd 0 bytes (time)&#8221;</em>. It&#8217;s time to play some music! Switch on Desktop A and play some song.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/34.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/34_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>If you switch back to <strong>Dekstop B</strong> you&#8217;ll see the size at <strong>Streamed </strong>is raising.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/35.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/35_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Go to the  IP address of your server with internet browser (208.53.138.125:8757) and you should see the name of song, name of radio station, how many listeners you have and similar.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/36.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/36_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>If it&#8217;s all as I mentioned, the thing is fully funcional.</p>
<p style="font-size: 1.5em; border-top:1px dashed black; border-bottom:1px dashed black"> Changing configuration (config)</p>
<p>Now, we must enable that &#8216;current song&#8217; is shown at our web-site (directly from Internet), so visitors can <em>request </em>songs and similar. Go to the following folder <em>&#8220;C:\Program Files\SpacialAudio\SAMBC\samPHPweb“</em> and copy it all (samPHPweb) to some other place (ex. Dekstop). Open up folder and file <strong>config.php</strong> with Wordpad/Notepad.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/37.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/37_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>Change the following lines in file <strong>config.php</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//Station general details</span>
  <span style="color: #000088;">$station</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;My station name&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$email</span>    <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;email@mailbox.com&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$logo</span>     <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;images/logo.gif&quot;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$stationid</span>   <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>           <span style="color: #666666; font-style: italic;">//The ID of your registered station on AudioRealm.com</span>
  <span style="color: #000088;">$sam</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;host&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//The IP address of the machine SAM is running on (DO NOT use a local IP address like 127.0.0.1 or 192.x.x.x)</span>
  <span style="color: #000088;">$sam</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;port&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;1221&quot;</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;">//The port SAM handles HTTP requests on. Usually 1221.</span></pre></div></div>

<p>into</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #666666; font-style: italic;">//Station general details</span>
  <span style="color: #000088;">$station</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Moj radio&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$email</span>    <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;info@tzrus.com&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$logo</span>     <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;images/logo.gif&quot;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$stationid</span>   <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>           <span style="color: #666666; font-style: italic;">//The ID of your registered station on AudioRealm.com</span>
  <span style="color: #000088;">$sam</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;host&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mojradio.no-ip.info&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//The IP address of the machine SAM is running on (DO NOT use a local IP address like 127.0.0.1 or 192.x.x.x)</span>
  <span style="color: #000088;">$sam</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;port&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;1221&quot;</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;">//The port SAM handles HTTP requests on. Usually 1221.</span></pre></div></div>

<p><strong>Station</strong> – name of your radio station, email – your e-mail address, logo leave as it is (path), <strong>stationid</strong> leave 0, <strong>$sam[„host“]</strong> type in your host / static IP address – in our case that is <strong>mojradio.no-ip.info</strong>. <strong>Port </strong>leave as it is <em>(1221</em>).</p>
<p>After that open up file <strong>dbconfig.xml.php</strong> and change following:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt;?/* </span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;CONFIG</span> <span style="color: #000066;">application</span>=<span style="color: #ff0000;">&quot;SAM&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;4.2.1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Driver<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>MYSQL<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Driver<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>localhost <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3306<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>database<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>username<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>password<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/CONFIG<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 */?&gt;</pre></div></div>

<p>into</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt;?/* </span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;CONFIG</span> <span style="color: #000066;">application</span>=<span style="color: #ff0000;">&quot;SAM&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;4.2.1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Driver<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>MYSQL<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Driver<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>localhost<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3306<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Port<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>tzruscom_mojradio<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>tzruscom_testna<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Username<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>blabla<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Password<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Database<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/CONFIG<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 */?&gt;</pre></div></div>

<p>When you have done that, upload the complete directory to your web-server. If you get the following screen (in Internet browser) everything is OK.</p>
<p style="text-align: center"><a href="http://www.svebee.com/images/internet_radio/original/38.jpg"><img style="margin: 5px" src="http://www.svebee.com/images/internet_radio/38_thumb.jpg" alt="Internet Radio – ShoutCast – SAM Broadcaster" /></a></p>
<p>If you get error <strong>&#8220;MySQL error – couldn&#8217;t connect to database“</strong> one possible problem could be the ports (<em>1221 </em>and <em>3306</em>) which must be &#8220;free&#8221; &#8211; you must <strong>pass them</strong> through your router. An easy way to detect this is download the following script and within it, change these two lines (and ofcourse than upload it to your web-server):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$hostNameOrIP</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mojradio.no-ip.info&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$hostPort</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;1221&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>that it will read in the first case, and in the second</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$hostNameOrIP</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot; mojradio.no-ip.info &quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$hostPort</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;3306&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If both are <strong>PASSED</strong>, then it&#8217;s fine, if it&#8217;s <strong>FAILED</strong>, then you must pass them through your router (tutorials for this can be found here &#8211; <strong><a href="http://portforward.com/">portforward.com</a></strong>).</p>
]]></content:encoded>
			<wfw:commentRss>http://en.svebee.com/46/internet-radio-shoutcast/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
