| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Fri Mar 28, 2008 11:55 pm Post subject: Streaming to LAN from server with multiple Internet provider |
|
|
Hi everyone!
I have my own server connected to multiple Internet providers via different eth interfaces. Suppose default one is eth0.
Once I start Icecast it uses default (eth0) interface for streaming internet radio stations to my local network. Is there any way to force Icecast to use eth1 interface (for ex.) instead of default one?
I've checked xml config file and found nothing that could guide me in solving this issue
Any suggestions appreciated  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 29, 2008 2:03 am Post subject: |
|
|
The default bind address is 0.0.0.0 so it will listen on any incoming link. You can of course use bind-address to limit what address it will listen on.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Mar 29, 2008 8:14 am Post subject: |
|
|
| karlH wrote: |
The default bind address is 0.0.0.0 so it will listen on any incoming link. You can of course use bind-address to limit what address it will listen on.
karl. |
Sorry, guess I made myself not clear enough.
I have 2 providers on my LAN server - 1st is reliable with thing badwidth (eth0), 2nd is not reliable but with high bandwidth(eth1). Default one is 1st, eth0. I'm streaming internet radio from sky.fm to LAN through my server. ONLY to LAN! Streaming TO internet is blocked by firewall. So, once I start icecast it uses server's default gateway (which is thin bandwidth ) eth0 to get stream from sky.fm.
My idea is to make it use not default but eth1 interface with high bandwidth. Is there any way to do it using icecast or I need to make shaman moves with my firewall and trafic forwarding?
Thanks for quick answer anyway.  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 29, 2008 2:50 pm Post subject: |
|
|
If you mean you want the relay to use a particular interface then yes but only in my branch work using the <bind> option in <relay>
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Mar 29, 2008 5:52 pm Post subject: |
|
|
| karlH wrote: |
If you mean you want the relay to use a particular interface then yes but only in my branch work using the <bind> option in <relay>
karl. |
Yes, I mean exactly that idea.
I'm kinda newbie here... can you explain what is your branch and where can I get it?  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Mar 29, 2008 6:30 pm Post subject: |
|
|
Look at the web address I've specified for the forum.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sun Mar 30, 2008 2:09 pm Post subject: |
|
|
Thanks Carl!
Works great with different interfaces!
But one thing I mentioned in your branch which differs from official - status.xsl page shows no streams till someone access it.
I mean, once I start icecast server and go to status.xsl web page I see no streams But if I manually add url to my winamp then stream becomes shown at status page. No matter if I stop listening of it.
Main idea is after icecast server restart people could not find out what channels are present at this server
Maybe I missed some config option to show all channels configured for server? Official version of icecast shows all channels at status.xsl web page no matter if someone used then or not... Any clue?
Thanks in advance.
P.S. <On demand> param is set to 1. For both server versions. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Mar 30, 2008 3:16 pm Post subject: |
|
|
Yeah, it's because of some rearrangments I did, seems like on demand relays without a <mount> don't show when they are inactive. I've fixed it here, so check when I do another update (kh33), you can work around it by adding an empty <mount> <mount-name> in the xml.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Apr 02, 2008 1:21 am Post subject: |
|
|
| karlH wrote: |
Yeah, it's because of some rearrangments I did, seems like on demand relays without a <mount> don't show when they are inactive. I've fixed it here, so check when I do another update (kh33), you can work around it by adding an empty <mount> <mount-name> in the xml.
karl. |
Can you please explain last sentence?
I can use empty <mount> <mount-name> in current version or it will be only avaiable in kh33? And where exactly shoud I use it? Example would be very usefull  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Apr 02, 2008 2:50 am Post subject: |
|
|
kh33 will have the fix for the missing stats without the mount definition but you should be able to work around it in kh32 by defining a empty block like the following
<mount> <mount-name>/stream</mount-name> </mount>
I'm almost done with kh33, just need to hear back on a couple of things. Check the Dev branches forum.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Apr 02, 2008 10:31 am Post subject: |
|
|
| karlH wrote: |
kh33 will have the fix for the missing stats without the mount definition but you should be able to work around it in kh32 by defining a empty block like the following
<mount> <mount-name>/stream</mount-name> </mount>
I'm almost done with kh33, just need to hear back on a couple of things. Check the Dev branches forum.
karl. |
Sorry, but once more to be totally clear - this block should be added to each <relay> of just one time for the whole icecast.xml? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Apr 02, 2008 12:50 pm Post subject: |
|
|
Add that block (mountpoint named correctly) for each relay that isn't showing up when it's inactive, or a wait a couple of hours by which time I'll of uploaded kh33.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Apr 03, 2008 2:52 pm Post subject: |
|
|
Thanks, Karl! Updated with your 33rd version - mount issue seems ok now - I can see all relays no matter if there are listeners or not.
But! Peek listeners column is shown only if there are active listeners
So, relay should be active to see how popular is it
Is there any way to see popularity on offline relay? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Apr 03, 2008 3:11 pm Post subject: |
|
|
I suppose that information could be kept for an on-demand relay, well maybe even a relay in general. It cannot be done for inactive source client streams but relays could keep this information. I'll just need to fixup the internal settings for it.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Apr 03, 2008 8:53 pm Post subject: |
|
|
| karlH wrote: |
I suppose that information could be kept for an on-demand relay, well maybe even a relay in general. It cannot be done for inactive source client streams but relays could keep this information. I'll just need to fixup the internal settings for it.
karl. |
Yes, relays keep this info - if I stop relay and then start again peek connections info is stayed. It flushes only on server restart. Maybe you could giude me somehow and I'll change this stuff by myself? Programming expirience is few years Mostly Java, but think I can try C too  |
|
| Back to top |
|
 |
|