Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 8th September 2003, 02:47   #1
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
About relay server

Hi!

I have a question about relay server. I successfully use server B as the relay server of server A. However, the original hyperlink of server A is serverA.no-ip.com/listen.pls but the hyperlink of server B is serverB.no-ip.com/listen.pls. It's quite inconvenience because we need to send out all the hyperlinks of relay servers to users.

Is there any ways to stick with the address serverA.no-ip.com/listen.pls so that when it reaches the maximum number of users, it can automatically route the request to serverB which is transparent to users?

Thanks in advance!
joe1393 is offline   Reply With Quote
Old 8th September 2003, 02:53   #2
Tom
Moderator
 
Join Date: Apr 2000
Posts: 4,485
If they are both listed in the SHOUTcast yp then it should do this automatically. Look for "New backup server xxx.xxx.xxx" in the log.

Tom

Tom is offline   Reply With Quote
Old 8th September 2003, 03:02   #3
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
Thanks Tom!

However, I tried but it seems it's not the case. During the test, I set serverA to allow 1 users and serverB to allow 10 users. When serverB connected to serverA, the no. of users of serverA reaches maximum. Then I use mmjukebox to connect to serverA but it rejects instead of route to serverB. Did I set something wrong?
joe1393 is offline   Reply With Quote
Old 8th September 2003, 03:04   #4
DJ Killer
Major Dude
 
DJ Killer's Avatar
 
Join Date: Jul 2003
Location: O-Town FLA
Posts: 1,357
Send a message via AIM to DJ Killer Send a message via Yahoo to DJ Killer
that means server A cannot have a relay because it needs 1 listener spot to relay appropriately.

I Make. Perform. Mix. Play. Music.
DJ Killer is offline   Reply With Quote
Old 8th September 2003, 03:07   #5
Tom
Moderator
 
Join Date: Apr 2000
Posts: 4,485
Were they both listed in the yp as a cluster when you tried?

Tom

Tom is offline   Reply With Quote
Old 8th September 2003, 03:18   #6
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
What I did was only modify the ini file of serverB with the following lines:

RelayPort=xxxx
RelayServer=xxx.xxx.xxx.xxx

If I go the the webpage of "SHOUTcast D.N.A.S. Status", both serverA:xxxx and serverB:xxxx are up and running.

Where can I specify the 2 servers as cluster?

BTW, after I upgrade DNAS server to 1.9.2, when using remote admin login, it prompt for username, what's that? It doesn't exists in 1.8.9.
joe1393 is offline   Reply With Quote
Old 8th September 2003, 03:39   #7
DJ Killer
Major Dude
 
DJ Killer's Avatar
 
Join Date: Jul 2003
Location: O-Town FLA
Posts: 1,357
Send a message via AIM to DJ Killer Send a message via Yahoo to DJ Killer
useranme is admin.

did you reset serverb after you made the changes?

I Make. Perform. Mix. Play. Music.
DJ Killer is offline   Reply With Quote
Old 8th September 2003, 04:09   #8
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
Thanks DJKiller!

I did reset both servers after the changes. If the modification of the ini file is the only settings, I will try again tonight and note if the word "clustered" exists on yellow page.

Thanks all!
joe1393 is offline   Reply With Quote
Old 8th September 2003, 04:15   #9
DJ Killer
Major Dude
 
DJ Killer's Avatar
 
Join Date: Jul 2003
Location: O-Town FLA
Posts: 1,357
Send a message via AIM to DJ Killer Send a message via Yahoo to DJ Killer
no prob

I Make. Perform. Mix. Play. Music.
DJ Killer is offline   Reply With Quote
Old 9th September 2003, 12:09   #10
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
I just tried but it fails again! >_<

[Log file of Server A:]
[dest: serverB] starting stream (UID: 21)[L: 2]{A: Shoutcast Server 1.9.2}(P: 0)

[Log file of Server B:]
[main] relay thread starting
[main] opening client socket
[source] creating relay socket
[main] Client Stream thread [0] starting
[source] resolving relay host
[main] client main thread starting
[source] relay host gave success (ICY 200 OK)
[source] relay from localhost established.
[source] icy-name:name of serverA; icy-genre:Mixed
[source] icy-pub:1 ; icy-br:128 ; icy-url:http://serverA:xxxx
[source] icy-irc:N/A ; icy-icq:N/A ; icy-aim:N/A
[yp_add] yp.shoutcast.com added me successfully

In the yellowpage, both are up but the word "cluster" doesn't shows up. What's wrong with my config?
joe1393 is offline   Reply With Quote
Old 9th September 2003, 15:59   #11
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,109
Cluster means your relay is combined (clustered) with the main DNAS.

Right click on the tune-in link from shoutcast.com and save the playlist on your desktop. Open it in a text editor and you'll see both DNAS entries.

FesterHead is offline   Reply With Quote
Old 10th September 2003, 17:03   #12
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
Thanks! However, if I save the listen.pls, it only shows:

[playlist]NumberOfEntries=1 File1=http://ServerA:8000/

It sounds ServerB is not clustered with ServerA. Anything I have missed out?
joe1393 is offline   Reply With Quote
Old 10th September 2003, 18:19   #13
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,109
Does server A relay server B or does server B relay server A?

FesterHead is offline   Reply With Quote
Old 10th September 2003, 23:40   #14
joe1393
Junior Member
 
Join Date: Sep 2003
Posts: 9
ServerA is the master. ServerB is slave. The log file is attached in previous post for analysis.

Thanks!
joe1393 is offline   Reply With Quote
Old 10th September 2003, 23:57   #15
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,109
Are you looking at the playlist from the DNAS or from http://www.shoutcast.com?

If from the DNAS, then only that particular DNAS entry will appear in the pls.

If from http://www.shoutcast.com then all relays should be in the pls if and only if [cluster] is prefixed to the station name.

Fire up your DNASs, wait for them to cluster, then examine the pls from http://www.shoutcast.com

FesterHead is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump