Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Port Forwarding.. How to? (http://forums.winamp.com/showthread.php?t=242262)

UberDragon 31st March 2006 15:35

Port Forwarding.. How to?
 
Hello boys and girls!

I come to you today with an interesting dilema! First let me say thank you for shoutcast, with out it our radio station would be just a dream.

We are hosting our 2 shoutcast servers from spacialnet.com and have specific ports to connect to for our online stream player: http://www.bloodlustradio.net/player...r.php?server=1
This pages uses an embed tag to invoke the stream and play it live. Here is my dilema, many people at work are behind strict firewalls, they can surf the internet thru port 80 but a stream thru some odd port (14080 in this case) is blocked by the firewall. What I'm trying to find is a way to forward the stream from 14080 to 80 so anyone who has internet access will be able to listen to the broadcast from behind their strict firewall.

Anyone seen a solution to this problem? I'm fluent in PHP but I can't find any code base for what I want to do. Any help is GREATLY appreciated!

~Uber

hackerdork 31st March 2006 15:58

Well you can't forward your stream from port 14080 to port 80 if you all ready have a web server on port 80.

basicly 1 IP = 1 port. http (web) is port 80 all ready, so you would need another IP address for the stream and you could run the stream on port 80. If there isnt a way for you to get another IP address just for your stream, try using port 8080 for the stream, port 8080 was used for years by http proxies and several firewalls all ready have that open.

Make sence??

~ DK

UberDragon 31st March 2006 17:49

Well since the shoutcast server is being hosted by a provider they get to decide what port is being used for the stream. Since they host a number of shoutcast streams it makes sense they need to have that control.

I'm looking for a way to script (perhaps in php? cgi?) a PORT redirect of sorts. Perhaps I would point the embded src to a custom script, which in turns calls up the correct server and port for the stream but sends it via port 80 to the listener.

This way the script is connecting at the correct required port to pick up the stream, but the listener doesn't have to have port 14080 open in their firewall since it gets sent to their browser thru a more normal port (like 80).

Make sense?

~Uber

hackerdork 31st March 2006 18:43

nope. You are talking making a proxy that would take your stream from your hosting provider to port 80 on the internet account. Basicly you cant do this unless your host supports it. If you can SSH to your web host from your PC, you can get around the firewalls however every listener would need to do the same.

So in short there is not a script, it would require a proxy. shoutcast does not proxy. you need something installed on the web host that does this for you.

~ DK

alansp 7th April 2006 15:25

ok, lets say port 80 is open... how do we have multiple shoutcast on port 80? like club977?

hackerdork 7th April 2006 16:34

They have a cluster (several) servers all running a shoutcast server and relay off each other or vice versa. This is how they have also support 1000's of users.

~ DK

alansp 9th April 2006 10:31

right, so back to the main idea... how do we manipulate port 13232 to port 80 through a software proxy?

http://www.vanheusden.com/shoutcastproxy/

I got that far, but not sure how to start from there... do i need apache running to have that work?

hackerdork 9th April 2006 17:55

not a shoutcast support tool. talk to the person that wrote that proxy.

BTW if you read the shoutcast proxy page you would notice it to stream through a proxy (central server). Not to change the port

Shit if you understood webhosting! Just run shoutcast server on port 80 and tada. Which means you can not have a web server running on port 80 on the same IP address/host

~ DK

Huaso 26th June 2006 17:41

Assold
 
"hacker"dor do you know a scproxy.cgi ???, its a cgi proxy, easy instalation, but the script not are a free, i can“t find that scritp into internet...


see: http://s4.viastreaming.net/cgi-bin/s....cgi?port=7130


WHY???


anyone???


its a exelent idea for broadcast from the port 80

Huaso 10th October 2006 20:12

HELLO?

BELLonline 1st November 2006 14:28

Sorry to bring an old post back, but that scproxy.cgi is very good and could be useful - anyone know if it is available or is it viastreaming's own thing?


All times are GMT. The time now is 13:52.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.