Old 5th October 2003, 12:59   #1
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
HOWTO: Use the same port with multiple servers

Hello,

I have descovered a way to use the same port on a server with many copies of ShoutCAST servers running.

Very simple actually, in the sc_serv.conf set the following:

SrcIP
DestIP

to a dedicated IP on the server (same as each other).

For example:

Server1 => SrcIP=192.168.0.1
Server1 => DestIP=192.168.0.1
Port: 8000 (or what ever you want)

Server2 => SrcIP=192.168.0.2
Server2 => DestIP=192.168.0.2
Port: 8000 (or what ever you want)

Now in WinAMP you want to make sure that the IP (not domain) that you connect to is what you used in both SrcIP and DestIP or else it will fail.

Now, when you call the ShoutCAST server you must call it using the DestIP and the SrcIP and port for each server or else it will not work.

When you don't specific a SrcIP and DestIP it enables the ShoutCAST server for the entire server, and that is not a good thing.

And something else to note is that this will also with a dedicated IP count the bandwidth used with the ShoutCAST server on anyport you use.

Now, something I've noticed is when you put a ShoutCAST server on a shared IP (other domains on a particular IP) it will count towards the BW usage for the main IP, NOT the users domain). PLEASE CORRECT ME IF I AM WRONG, I HAVE ONLY MADE SOME MINOR TESTING ON THIS.

If you have any questions, let me know!

Thanks and God Bless!

~~David~~
dwoldo is offline   Reply With Quote
Old 6th October 2003, 00:37   #2
DJ AmPs
Major Dude
 
DJ AmPs's Avatar
 
Join Date: Mar 2002
Location: g
Posts: 1,603
You failed to mention what type of hosting environment you are using... i.e. Cpanel with Bandmin or whatever... Ensim won't track shoutcast bandwidth at all...

Most people don't monitor bandwidth on a per IP basis... all I care about is my MRTG graph of the entire server.

Good luck with your bbandwidth billing =) hope they pay in advance!!
DJ AmPs is offline   Reply With Quote
Old 6th October 2003, 01:52   #3
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
Hello,

I do appoligize. I made a wrong absumtion, however I hope the multiple servers using the same port will work on other enviroments.

I am running RedHat 7.3 cPanel + Bandmin enviroment.

Thanks and God Bless!

David Garza
dwoldo is offline   Reply With Quote
Old 6th October 2003, 16:37   #4
jackherer
Major Dude
 
Join Date: Aug 2003
Posts: 942
Erm forgive me if i'm missing something but why would you want to do this ?


Do not PM me for tech support !
jackherer is offline   Reply With Quote
Old 6th October 2003, 20:18   #5
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
If you want to offer webhosting/streaming using cPanel. Or just offer streaming and count it towards their bandwidth usage.

Thanks and God Bless!

David Garza
dwoldo is offline   Reply With Quote
Old 6th October 2003, 22:15   #6
DJ AmPs
Major Dude
 
DJ AmPs's Avatar
 
Join Date: Mar 2002
Location: g
Posts: 1,603
Yep thats a good thing too... make those web hosting people accountable for their insane bandwidth usage from the shoutcast server =)

I think you can only do this with Cpanel servers though since they use Bandmin.
DJ AmPs is offline   Reply With Quote
Old 6th October 2003, 22:58   #7
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
How do bigger companies do this? Do they setup them up on a dedicated IP and Bandmin and have a custom program check Bandmin and bill the client or what?

Thanks and God Bless!

David Garza
dwoldo is offline   Reply With Quote
Old 6th October 2003, 23:33   #8
DJ AmPs
Major Dude
 
DJ AmPs's Avatar
 
Join Date: Mar 2002
Location: g
Posts: 1,603
most stream hosting companies charge for the maximum listeners the server can handle. This cost *should* cover the bandwidth =)

I don't know any stream hosts that charge for ACTUAL bandwidth usage... it's just way too much work and poses "success" risk to the client. By that I mean, if the client happenes to gain alot of listeners throughout the month and his listener average shoots up, he might not be able to pay for the server and end up losing it and/or going in debt.
DJ AmPs is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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