# Simple ShoutCAST streamer /w browser

**URL:** <https://www.ruby-forum.com/t/simple-shoutcast-streamer-w-browser/51095>\
**Category:** Ruby\
**Created:** [December 26, 2005, 5:11am UTC](https://www.ruby-forum.com/t/simple-shoutcast-streamer-w-browser/51095 "2005-12-26T05:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilmari\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Post date:** [December 26, 2005, 5:11am UTC](https://www.ruby-forum.com/t/simple-shoutcast-streamer-w-browser/51095/1 "2005-12-26T05:11:16Z")

</div>

I don’t know how interesting this is, but I found it useful for  
listening to music on my home computer (tunneled over SSH) while  
visiting my folks over the holidays.

It’s a quick hack, accepting CGI-using rewrites 🙂

Download: [http://dark.fhtr.org/streamer.rb](http://dark.fhtr.org/streamer.rb)

Usage example:

apt-get install socat libmp3tag-ruby1.8  
cd music  
socat TCP4-LISTEN:8080,fork EXEC:‘ruby streamer.rb’ &  
firefox “[http://localhost:8080/,](http://localhost:8080/,)”

Open [http://localhost:8080/](http://localhost:8080/) in an MP3 player to stream all files in  
random order.

Append a comma to URL to browse files.  
Drag file link to MP3 player to play it.  
Drag (stream)-link to recursively stream all files in a directory.
