| View previous topic :: View next topic |
| Author |
Message |
preacherx
Joined: 19 Jan 2009 Posts: 3 Location: IL, USA
|
Posted: Mon Jan 19, 2009 7:48 pm Post subject: Authenticated Listen Sockets |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Jan 19, 2009 8:01 pm Post subject: |
|
|
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 |
|
 |
preacherx
Joined: 19 Jan 2009 Posts: 3 Location: IL, USA
|
Posted: Mon Jan 19, 2009 8:15 pm Post subject: |
|
|
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 |
|
 |
Will
Joined: 15 Nov 2007 Posts: 15
|
Posted: Mon Jan 19, 2009 11:25 pm Post subject: |
|
|
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 |
|
 |
preacherx
Joined: 19 Jan 2009 Posts: 3 Location: IL, USA
|
Posted: Mon Jan 19, 2009 11:56 pm Post subject: |
|
|
| this is EXACTLY what I was looking for. Thank you very much. |
|
| Back to top |
|
 |
Will
Joined: 15 Nov 2007 Posts: 15
|
Posted: Tue Jan 20, 2009 12:03 am Post subject: |
|
|
| No problemo! |
|
| Back to top |
|
 |
|