Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Authenticated Listen Sockets

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
preacherx



Joined: 19 Jan 2009
Posts: 3
Location: IL, USA

PostPosted: Mon Jan 19, 2009 7:48 pm    Post subject: Authenticated Listen Sockets Reply with quote

What I am attempting to do, if possible, is assign an authenticated listen socket to each user connecting to the server. Users will be shoutcast and so can not use mounts. This becomes an issue because I want each user (each listen socket) to have a unique password.

Is this possible?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jan 19, 2009 8:01 pm    Post subject: Reply with quote

You don't apply authentication to sockets, you apply them to mountpoints. The fact that shoutcast uses / for a mountpoint does not change that.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
preacherx



Joined: 19 Jan 2009
Posts: 3
Location: IL, USA

PostPosted: Mon Jan 19, 2009 8:15 pm    Post subject: Reply with quote

With that in mind, is there a way to provide a seperate port, with a unique password, for each source without spawning seperate processes with different configurations?

Right now we spawn a seperate server process with a unique configuration with the varied listen socket and authentication information. I would like to consolidate this to a single process with single configuration that allows each user to connect to thier port with thier own unique password.

There will be approximately 30 sources connecting and broadcasting via this server.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Will



Joined: 15 Nov 2007
Posts: 15

PostPosted: Mon Jan 19, 2009 11:25 pm    Post subject: Reply with quote

To do this; you need to define 2 sections.

A listen socket per mount, important to remember here, if you use 8002 at the listen socket, then sources should connect to that port. You will also need the port+1 open in your fireall. (Shoutcast requires 2 ports).

This allows you to add multiple listen sockets, using different ports. Please feel free to contact me through any method in my profile, if you need further help.

<listen-socket>
<port>8002</port>
<bind-address>216.12.167.243</bind-address>
<shoutcast-mount>/live1.mp3</shoutcast-mount>
</listen-socket>

After doing this; you want to define the mount point itself, to limit connecting clients & source password etc etc

<mount>
<mount-name>/live1.mp3</mount-name>

<username>source</username>
<password>yourpasswordchoice</password>

<max-listeners>25</max-listeners>
<burst-size>65536</burst-size>
<hidden>0</hidden>
<no-yp>0</no-yp>
</mount>
Back to top
View user's profile Send private message MSN Messenger
preacherx



Joined: 19 Jan 2009
Posts: 3
Location: IL, USA

PostPosted: Mon Jan 19, 2009 11:56 pm    Post subject: Reply with quote

this is EXACTLY what I was looking for. Thank you very much.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Will



Joined: 15 Nov 2007
Posts: 15

PostPosted: Tue Jan 20, 2009 12:03 am    Post subject: Reply with quote

No problemo!
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber