Old 17th March 2006, 19:32   #1
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
Cannot get the details - ShoutCast

Hi guys,
I'm having a problem getting the info from shoutcast server.

Actually SC server works just fine.. I'm able to connect, play songs and all on my linux server, PHP grabs the info and shows normally, songname, bitrates, listeners etc..

this FAILS when I try to do with some other server, I've tried to upload the same files and tried on the other server, and it doesn't work.. says:


Warning: fsockopen(): unable to connect to 21x.xxx.xxx.xx:9000 in /home/mxb/public_html/radio/parse.php on line 7


what could be the problem? pls lend me a hand on this one, thanks.
mxb is offline   Reply With Quote
Old 17th March 2006, 20:22   #2
MegaRock
Forum King
 
MegaRock's Avatar
 
Join Date: Jun 2003
Location: Inside my water bong
Posts: 6,865
Send a message via ICQ to MegaRock Send a message via Yahoo to MegaRock
My guess would be the webserver you uploaded the files to does not support outbound fsock connections which many cheap webhosts do not. As the server does not support that outbound connection to your server the script will not work and will display this type of error.

Megarock Radio - St. Louis Since 1998!
Don't click this link!
Corporate Radio Sucks! No suits, all rock!
MegaRock is offline   Reply With Quote
Old 17th March 2006, 23:43   #3
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
Quote:
Originally posted by MegaRock
My guess would be the webserver you uploaded the files to does not support outbound fsock connections
Thanks for your reply MegaRock..

I've checked out some other function using the fsock php command on that same webserver, it works just fine.. so that isn't the problem, but then what is?
mxb is offline   Reply With Quote
Old 18th March 2006, 00:11   #4
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
are you absolutely sure you have the correct IP address pluged into the config files???
fc*uk is offline   Reply With Quote
Old 18th March 2006, 06:55   #5
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
yes, I'm 100% sure, else it wouldn't work on my server on the 1st place.
mxb is offline   Reply With Quote
Old 18th March 2006, 07:29   #6
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
with the same settings MediaPlayer plugin for FF works, but getting details fails.. no idea why.. it's strange, does it have anything to do with the shoutcast server? I'm puzzled.
mxb is offline   Reply With Quote
Old 18th March 2006, 15:42   #7
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
it probably has little to do with the SHOUTcast server; all that does is send music out for you ...
fc*uk is offline   Reply With Quote
Old 18th March 2006, 17:56   #8
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
I thought the same too, but I wanted to make sure..

The radio is working just fine on server 1, where the SC is running.

The same script faild to run on a webserver. What could be the problem?
mxb is offline   Reply With Quote
Old 18th March 2006, 17:58   #9
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
sorry.. here is a screenshot
Attached Images
File Type: jpg radio_error.jpg (36.3 KB, 143 views)
mxb is offline   Reply With Quote
Old 18th March 2006, 18:06   #10
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
hmmmmmmmm .... are you broadcasting two streams from the same server and trying to get stats on both the streams??? If yes, then what about the port number that the script is erroring on.... is that indeed correct? Is some other process using that port causing that error? You may wanyt to look into a port scanner and see what is going on...
fc*uk is offline   Reply With Quote
Old 18th March 2006, 18:24   #11
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
Quote:
Originally posted by fc*uk
hmmmmmmmm .... are you broadcasting two streams from the same server and trying to get stats on both the streams??? If yes, then what about the port number that the script is erroring on.... is that indeed correct? Is some other process using that port causing that error? You may wanyt to look into a port scanner and see what is going on...
Thats right, I'm broadcasting 2 streams from the same server, but steam 1 uses 7000, 7001, and stream 2 uses 9000 and 9001, ports are opened for both. If the ports are being used by some other program, that means the radio streams shouldn't work on the same server, but it works on the same server as you may have noticed from the screenshot.
mxb is offline   Reply With Quote
Old 18th March 2006, 19:38   #12
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
Quote:
Originally posted by fc*uk
hmmmmmmmm .... You may wanyt to look into a port scanner and see what is going on...
Hi,
I've look at the port.. in the unix system, the results are following...

code:

LISTEN sc_serv2
tcp 0 0 0.0.0.0:9001 0.0.0.0:* LISTEN sc_serv2
tcp 0 0 0.0.0.0:9000 0.0.0.0:*

LISTEN sc_serv1
tcp 0 0 0.0.0.0:7001 0.0.0.0:* LISTEN sc_serv1
tcp 0 0 0.0.0.0:7000 0.0.0.0:*

mxb is offline   Reply With Quote
Old 18th March 2006, 20:22   #13
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
whelp ... I am outta my huhu here.

Everything looks fine to me. If anyone else has any ideas ... now would be the time...
fc*uk is offline   Reply With Quote
Old 19th March 2006, 07:59   #14
mxb
Junior Member
 
Join Date: Oct 2005
Posts: 20
thankyou for trying fc..k,

I need help.. anyone?
mxb is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

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